-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

@ -1,4 +1,4 @@
project('decs', 'd', version : '0.5.0')
project('decs', 'd', version : '0.1.0')
# Options
betterC_opt = get_option('betterC')
@ -78,6 +78,24 @@ decs_dep = declare_dependency(
# Tests
if BuildTests_opt
subdir('tests')
executable('d-api-tests',
['tests/tests.d'],
include_directories : [inc],
d_args : args,
link_args : link_args,
dependencies : decs_dep,
)
if C_API_opt
add_languages('c')
executable('c-api-tests',
['c-api/test.c'],
include_directories : [inc],
dependencies : decs_dep,
)
endif
endif
# Demos