-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
20 lines
No EOL
216 B
D
20 lines
No EOL
216 B
D
module ecs.entity;
|
|
|
|
import ecs.manager;
|
|
|
|
struct EntityID
|
|
{
|
|
uint id;
|
|
uint id_count;
|
|
}
|
|
|
|
struct Entity
|
|
{
|
|
EntityID id;
|
|
}
|
|
|
|
struct EntityTemplate
|
|
{
|
|
ubyte[] entity_data;
|
|
EntityManager.EntityInfo* info;
|
|
} |