*replaced array[..] = array[ .. ] sclice copy with mempcy *added own std library (allocator, alloca, Mutex) *changed tamplates for collecting components for systems -fixed issue with multiple optional components registering for system
24 lines
No EOL
365 B
D
24 lines
No EOL
365 B
D
module ecs.core;
|
|
|
|
public import ecs.manager;
|
|
public import ecs.entity;
|
|
|
|
static struct ECS
|
|
{
|
|
mixin template System(uint jobs_count = 32)
|
|
{
|
|
__gshared ushort system_id;
|
|
uint __ecs_jobs_count = jobs_count;
|
|
}
|
|
|
|
mixin template Component()
|
|
{
|
|
__gshared ushort component_id;
|
|
}
|
|
|
|
mixin template Event()
|
|
{
|
|
__gshared ushort event_id;
|
|
EntityID entity_id;
|
|
}
|
|
} |