-IDManager

-times counting for tests
This commit is contained in:
Mergul 2018-09-12 14:01:35 +02:00
parent 86e4e57f74
commit 17551b08a5
4 changed files with 118 additions and 10 deletions

View file

@ -5,12 +5,17 @@ import ecs.manager;
struct EntityID
{
uint id;
uint id_count;
uint counter;
}
struct Entity
{
EntityID id;
void updateID()
{
EntityManager.instance.id_manager.update(this);
}
}
struct EntityTemplate