Changed type of components container to make deleting more efficient

This commit is contained in:
2014-03-13 02:39:08 +01:00
parent e20516f993
commit ded88eaadd
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ protected:
std::unordered_map<EntityID, std::unordered_map<std::string, boost::any>> m_EntityProperties;
std::unordered_map<std::string, std::vector<std::shared_ptr<Component>>> m_ComponentsOfType;
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;
EntityID GenerateEntityID();