-working update() with EntitiesData structure input
-added support for 'const' components input (read only, future usage)
This commit is contained in:
parent
ed589bbd71
commit
d5780a6252
3 changed files with 167 additions and 86 deletions
|
|
@ -17,7 +17,7 @@ struct Entity
|
|||
EntityManager.instance.id_manager.update(this);
|
||||
}
|
||||
|
||||
T* getComponent(T)()
|
||||
T* getComponent(T)() const
|
||||
{
|
||||
EntityManager.EntitiesBlock* block = gEM.getMetaData(&this);
|
||||
EntityManager.EntityInfo* info = block.type_info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue