-components and infos are now stored in hash maps

-adding entities
-Template allocating and freeing
-Deltas calulating for components in EntityType
-Updating for every EntityType and System
-Generate deltas, components list, and functions callers for Systems
This commit is contained in:
Mergul 2018-09-09 23:28:18 +02:00
parent 9abc36be1c
commit a61a54b43f
5 changed files with 232 additions and 44 deletions

View file

@ -1,5 +1,7 @@
module ecs.entity;
import ecs.manager;
struct EntityID
{
uint id;
@ -13,6 +15,6 @@ struct Entity
struct EntityTemplate
{
uint[] components;
Entity* entity;
ubyte[] entity_data;
EntityManager.EntityInfo* info;
}