mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add entities indexing
This commit is contained in:
parent
66a1240fbc
commit
f135896683
7 changed files with 50 additions and 50 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue