-
Notifications
You must be signed in to change notification settings - Fork 115
Entity
Entities are containers of related components.
int e = world.create();
In artemis-odb, entities are represented by an int
for performance reasons. For convenience, Entity
class is also supported.
world.delete(e);
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.
Systems have built in mechanisms for querying them. Outside of systems, or if multiple different types of entities need to be queried within a system, you may be interested in Aspects are used for systems to state what they are going to operate on, as well as AspectSubscriptionManager, which gives the ability to query arbitrary kinds of entities at will, and also listen to changes in them.
See Components
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference