bubel-ecs/source/ecs/system.d
2018-09-10 21:48:33 +02:00

18 lines
353 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;
uint[] components;
void function(ref EntityManager.CallData data, void* entity) update;
}