Remade component ids

No longer based on incrementing counter


Former-commit-id: b875e17781d8bcda48ea9ada523adf0823b22a8b
This commit is contained in:
Lynix
2015-03-17 19:53:59 +01:00
parent 0ba034f7e9
commit bc40fbb02f
14 changed files with 83 additions and 69 deletions

View File

@@ -29,13 +29,13 @@ namespace Ndk
void Clear();
const EntityHandle& GetEntity(Entity::Id id);
const EntityHandle& GetEntity(EntityId id);
void KillEntity(const EntityHandle& entity);
void KillEntities(const EntityList& list);
bool IsEntityValid(const EntityHandle& entity) const;
bool IsEntityIdValid(Entity::Id id) const;
bool IsEntityIdValid(EntityId id) const;
void Update();
@@ -51,7 +51,7 @@ namespace Ndk
unsigned int aliveIndex;
};
std::vector<Entity::Id> m_freeIdList;
std::vector<EntityId> m_freeIdList;
std::vector<EntityBlock> m_entities;
EntityList m_aliveEntities;
NzBitset<nzUInt64> m_killedEntities;