Skip to content
Daan van Yperen edited this page Sep 29, 2015 · 50 revisions

Entities are containers of related components.

Create entity

int e = world.create();

In artemis-odb, entities are represented by an int for performance reasons. For convenience, Entity class is also supported.

Events for created, altered or removed entities are postponed until the system is done processing. This removes the need for systems to defend their subscription lists and allows for cleaner code and better performance.

Delete entity

world.delete(e);

Change composition

See Components

Clone this wiki locally