-license changed to BSD (maybe temporary) -added configurations to dub.json -initial ECS implementation (WIP): -Manager, System, Entity, Component -registering components -registering systems -calling update
18 lines
No EOL
177 B
D
18 lines
No EOL
177 B
D
module ecs.entity;
|
|
|
|
struct EntityID
|
|
{
|
|
uint id;
|
|
uint id_count;
|
|
}
|
|
|
|
struct Entity
|
|
{
|
|
EntityID id;
|
|
}
|
|
|
|
struct EntityTemplate
|
|
{
|
|
uint[] components;
|
|
Entity* entity;
|
|
} |