Skip to content
Daan van Yperen edited this page Sep 27, 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.

Delete entity

world.delete(e);

Change components

See Components

Good to know

Delayed Subscriptions

Events for Created, altered or removed entities are postponed until the current system has done processing and the next system is about to be invoked. This removes the need for systems to defend their subscription lists and allows for cleaner code and better performance.

Clone this wiki locally