-LinearLayout proggress:

*EntityTemplate.getComponent
 *Adding/removing components for Entitites
-better code for adding components
This commit is contained in:
Mergul 2018-09-26 10:57:42 +02:00
parent cb9bac5dde
commit c18ac54265
4 changed files with 95 additions and 40 deletions

View file

@ -31,7 +31,7 @@ struct IDManager
void update(ref Entity entity)
{
m_ids_array[entity.id.id].entity = &entity;
if(entity.id.counter == m_ids_array[entity.id.id].counter)m_ids_array[entity.id.id].entity = &entity;
}
export Entity* getEntityPointer(EntityID id)