Entity

Structure of Entity. It's have only ID, but have full konwlege to get to components memory (If pointer to it is proper).

Members

Functions

getComponent
void* getComponent(ushort component_id)
Undocumented in source. Be warned that the author may not have intended to support it.
getComponent
T* getComponent()

Get specified component. If component doesn't exist function retun null. Pointer is valid only before next "commit()", "begin()" or "end()" function is called. Returned pointer shouldn't be used to store reference to entity data.

getMeta
EntityMeta getMeta()
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.

Variables

id
EntityID id;

Entity ID.

Meta