-fixed removingComponents issue (object was transferred to another block, but count of entities in block doesn't increase)

-functions to get System by ID or ECS System by Type
-added system_id to system
-fixed issue with registering systems without update() function
This commit is contained in:
Mergul 2018-09-20 19:12:53 +02:00
parent 4ad81fe116
commit 45110e236c
2 changed files with 118 additions and 89 deletions

View file

@ -119,6 +119,13 @@ int main()
}
struct InputData
{
TestComp* test;
TestComp2* test2;
@("optional") TestComp3* test3;
}
void update(ref Entity entity, ref TestComp test, ref TestComp2 test2, TestComp3* test3) //ref TestComp comp)
{
assert(cast(size_t)&test % TestComp.alignof == 0);