Delayed removal of entities.

This commit is contained in:
2014-03-13 21:40:12 +01:00
parent d6a0cdca58
commit ebd54f0833
2 changed files with 28 additions and 14 deletions
+4
View File
@@ -85,9 +85,13 @@ protected:
std::unordered_map<std::string, std::list<std::shared_ptr<Component>>> m_ComponentsOfType;
std::unordered_map<EntityID, std::map<std::string, std::shared_ptr<Component>>> m_EntityComponents;
std::list<EntityID> m_EntitiesToRemove;
void ProcessEntityRemovals();
EntityID GenerateEntityID();
void RecycleEntityID(EntityID id);
};
template <class T>