Create a test for the ECS before we add more functionality.

This commit is contained in:
Zed A. Shaw 2024-10-29 16:04:40 -04:00
parent 143fe7784c
commit ea6cf1362b
4 changed files with 13 additions and 6 deletions

View file

@ -80,5 +80,17 @@ namespace DinkyECS {
} }
} }
} }
/*
template<typename Comp>
void send(int event, std::any data) {
}
template<typename Comp>
std::tuple<int, std::any data> recv() {
}
*/
}; };
} }

View file

@ -24,6 +24,7 @@ runtests = executable('runtests', [
'tests/map.cpp', 'tests/map.cpp',
'tests/collider.cpp', 'tests/collider.cpp',
'tests/sound.cpp', 'tests/sound.cpp',
'tests/dinkyecs.cpp',
], ],
dependencies: dependencies) dependencies: dependencies)
@ -40,11 +41,6 @@ roguish = executable('roguish', [
], ],
dependencies: dependencies) dependencies: dependencies)
myecstest = executable('myecstest', [
'./scratchpad/myecstest.cpp'
],
dependencies: dependencies)
collider = executable('collider', [ collider = executable('collider', [
'./scratchpad/collider.cpp' './scratchpad/collider.cpp'
], ],

View file

@ -8,7 +8,6 @@
using std::string; using std::string;
using namespace fmt; using namespace fmt;
using namespace Components; using namespace Components;
#define HEARING_DISTANCE 8 #define HEARING_DISTANCE 8