add entities indexing

This commit is contained in:
MihailRis
2024-06-26 18:14:04 +03:00
parent 66a1240fbc
commit f135896683
7 changed files with 50 additions and 50 deletions
+1
View File
@@ -54,6 +54,7 @@ std::unique_ptr<Content> ContentBuilder::build() {
EntityDef& def = *entities.defs[name];
// Generating runtime info
def.rt.id = entityDefsIndices.size();
entityDefsIndices.push_back(&def);
}