-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:
parent
4ad81fe116
commit
45110e236c
2 changed files with 118 additions and 89 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue