-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:
parent
9abc36be1c
commit
a61a54b43f
5 changed files with 232 additions and 44 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue