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