-move code from templates to ECS side:

*sendEvent - using EventRef (alias to ComponentRef)
 *ListenerCallData now contain entities count and pointer to EntityInfo
 *Remove system_pointer from SystemCallData (use context instead)
 *Register event
-Now all BECS functinality can be used without templates
-clean code
This commit is contained in:
Mergul 2021-03-24 18:35:03 +01:00
parent 0d08b8532a
commit 70a5388820
5 changed files with 126 additions and 261 deletions

View file

@ -648,6 +648,8 @@ unittest
void onAddEntity(EntitiesData data)
{
foreach(i; 0..data.length)
data.long_[i] += 1;
add++;
assert(add_order == 1);
add_order++;