bubel-ecs/source/ecs/system.d
Mergul a61a54b43f -components and infos are now stored in hash maps
-adding entities
-Template allocating and freeing
-Deltas calulating for components in EntityType
-Updating for every EntityType and System
-Generate deltas, components list, and functions callers for Systems
2018-09-09 23:28:18 +02:00

18 lines
No EOL
352 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;
}