-working update() with EntitiesData structure input

-added support for 'const' components input (read only, future usage)
This commit is contained in:
Mergul 2018-09-30 23:12:20 +02:00
parent ed589bbd71
commit d5780a6252
3 changed files with 167 additions and 86 deletions

View file

@ -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;