EntityManager

Undocumented in source.

Constructors

this
this()

EntityManager constructor.

Destructor

~this
~this()

EntityManager destructor.

Members

Functions

addComponent
void addComponent(Entity entity, C component)

Adds a component for an entity.

checkAndRegisterComponent
int checkAndRegisterComponent()

Checks if a component is already known.

createEntity
Entity createEntity()

Creates an entity.

getComponent
C* getComponent(Entity entity)

Retrieves a specific component of an entity.

getComponentsMask
BoolArray getComponentsMask()

Returns a mask with the specified components.

getEntitiesWith
Array!Entity getEntitiesWith()

Returns a range containing entities with the specified components.

getEntityComponentsMasks
bool[] getEntityComponentsMasks(Entity entity)

Returns components masks of an entity.

hasComponent
bool hasComponent(Entity entity)

Checks if an entity owns a specific component.

killEntity
void killEntity(Entity entity)

Kills an entity.

Manifest constants

COMPONENTS_POOL_SIZE
enum COMPONENTS_POOL_SIZE;
Undocumented in source.

Meta