-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
16
source/ecs/system.d
Normal file
16
source/ecs/system.d
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
module ecs.system;
|
||||
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
|
||||
struct System
|
||||
{
|
||||
///should system update and catch events?
|
||||
bool enabled = true;
|
||||
///system priority
|
||||
int prority;
|
||||
///pointer to system implementation
|
||||
void* system_pointer;
|
||||
|
||||
void function(ref EntityManager.CallData data, void* entity) update;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue