-LinearLayout proggress:
*EntityTemplate.getComponent *Adding/removing components for Entitites -better code for adding components
This commit is contained in:
parent
cb9bac5dde
commit
c18ac54265
4 changed files with 95 additions and 40 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue