-fully working betterC for windows
*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
This commit is contained in:
parent
ed99807871
commit
41f1c6474b
14 changed files with 722 additions and 868 deletions
|
|
@ -9,21 +9,6 @@ static struct ECS
|
|||
{
|
||||
__gshared ushort system_id;
|
||||
uint __ecs_jobs_count = jobs_count;
|
||||
/*EntityManager.Job[] _ecs_jobs;
|
||||
|
||||
void __ecsInitialize() nothrow @nogc
|
||||
{
|
||||
import std.experimental.allocator.mallocator;
|
||||
import std.experimental.allocator;
|
||||
_ecs_jobs = Mallocator.instance.makeArray!(EntityManager.Job)(jobs_count);
|
||||
}
|
||||
|
||||
void __ecsDeinitialize() nothrow @nogc
|
||||
{
|
||||
import std.experimental.allocator.mallocator;
|
||||
import std.experimental.allocator;
|
||||
Mallocator.instance.dispose(_ecs_jobs);
|
||||
}*/
|
||||
}
|
||||
|
||||
mixin template Component()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue