EntityManager.EntityInfo

Entity type info.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

blocksCount
uint blocksCount()

Returns number of blocks

getNewInfoAdd
EntityInfo* getNewInfoAdd(ushort id)
Undocumented in source. Be warned that the author may not have intended to support it.
getNewInfoRemove
EntityInfo* getNewInfoRemove(ushort id)
Undocumented in source. Be warned that the author may not have intended to support it.
hasComponent
bool hasComponent(ushort component_id)
Undocumented in source. Be warned that the author may not have intended to support it.
nonEmptyBlocksCount
uint nonEmptyBlocksCount()

Returns number of non empty blocks

Variables

add_listeners
ushort[] add_listeners;

systems which are listening for added entities

alignment
ushort alignment;

alignment of whole entity

change_listeners
ushort[] change_listeners;

systems which are listening for changed entities (changed in term of contained components)

comp_add_info
EntityInfo*[] comp_add_info;

cached new infos after adding component

comp_rem_info
EntityInfo*[] comp_rem_info;

cached new infos after removing component

components
ushort[] components;

entity components

deltas
ushort[] deltas;

deltas in memory for components in EntitiesBlock

first_block
EntitiesBlock* first_block;

pointer to first block/page

last_block
EntitiesBlock* last_block;

pointer to last block

max_entities
ushort max_entities;

max number of entities in block

remove_listeners
ushort[] remove_listeners;

systems which are listening for removed entities

size
ushort size;

size of entity (with alignment respect)

systems
bool[] systems;

array of systems which will update this entity

tmpl_deltas
ushort[] tmpl_deltas;

deltas in memory for components in EntityTemplate

update_block
EntitiesBlock* update_block;

pointer to last updated block

Meta