More tests:
-fixed bug in EntityManger.addComponents -added many new tests
This commit is contained in:
parent
84e04191c8
commit
d0b7138f9f
2 changed files with 288 additions and 3 deletions
|
|
@ -2085,6 +2085,7 @@ export struct EntityManager
|
|||
{
|
||||
num--;
|
||||
new_ids[i] = new_ids[num];
|
||||
data_pointers[i] = data_pointers[num];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2558,6 +2559,7 @@ export struct EntityManager
|
|||
pointers[i] = &thread.change_entities_list[index];
|
||||
index += components[ids[i]].size;
|
||||
}
|
||||
|
||||
__addComponents(id, ids, pointers[0 .. num]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue