FIxed GDC compilation (basic betterC WIP) and some improvements
-fixed issue with adding/removing entities inside events handling -fixed EntityMeta.getComponent() (added check if component_id is valid) -added function hasComponent to entity to check if component exists
This commit is contained in:
parent
f731b4cedb
commit
9589a5cb2d
11 changed files with 174 additions and 94 deletions
|
|
@ -6,7 +6,14 @@ import bubel.ecs.core;
|
|||
import bubel.ecs.manager;
|
||||
import bubel.ecs.entity;
|
||||
|
||||
import std.array : staticArray;
|
||||
version(GNU)
|
||||
{
|
||||
pragma(inline, true) T[n] staticArray(T, size_t n)(auto ref T[n] a)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
}
|
||||
else import std.array : staticArray;
|
||||
|
||||
import core.stdc.stdio;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue