EntityIDs should start at 1, because 0 is world
This commit is contained in:
@@ -25,7 +25,7 @@ public:
|
|||||||
const ComponentPool& GetComponents(std::string componentType);
|
const ComponentPool& GetComponents(std::string componentType);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EntityID m_CurrentEntityID = 0;
|
EntityID m_CurrentEntityID = 1;
|
||||||
|
|
||||||
std::unordered_map<EntityID, EntityID> m_EntityParents;
|
std::unordered_map<EntityID, EntityID> m_EntityParents;
|
||||||
std::unordered_multimap<EntityID, EntityID> m_EntityChildren;
|
std::unordered_multimap<EntityID, EntityID> m_EntityChildren;
|
||||||
|
|||||||
Reference in New Issue
Block a user