-changed README
-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
This commit is contained in:
parent
8285bde71d
commit
6217aec6be
10 changed files with 265 additions and 11 deletions
18
source/ecs/entity.d
Normal file
18
source/ecs/entity.d
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
module ecs.entity;
|
||||
|
||||
struct EntityID
|
||||
{
|
||||
uint id;
|
||||
uint id_count;
|
||||
}
|
||||
|
||||
struct Entity
|
||||
{
|
||||
EntityID id;
|
||||
}
|
||||
|
||||
struct EntityTemplate
|
||||
{
|
||||
uint[] components;
|
||||
Entity* entity;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue