Entity 0 is now a real entity in the world, created by the first entity read while importing. This makes the difference between map files and entity files automatic, since consecutive entity file loads should automatically get the world as parent, as long as the world entity has been created earlier.

This commit is contained in:
2016-01-08 12:42:32 +01:00
parent 24b9e951c2
commit 11d547cde8
6 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ private:
xercesc::SAX2XMLReader* m_Reader;
//State m_CurrentScope = State::Unknown;
std::stack<State> m_StateStack;
unsigned int m_NextEntityID = 1;
unsigned int m_NextEntityID = 0;
std::stack<EntityID> m_EntityStack;
std::string m_CurrentComponent;
std::string m_CurrentField;