-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
16 lines
No EOL
328 B
D
16 lines
No EOL
328 B
D
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;
|
|
} |