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

main
Zed A. Shaw 3 weeks ago
parent 143fe7784c
commit ea6cf1362b
  1. 12
      dinkyecs.hpp
  2. 6
      meson.build
  3. 1
      systems.cpp
  4. 0
      tests/dinkyecs.cpp

@ -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() {
}
*/
}; };
} }

@ -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'
], ],

@ -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

Loading…
Cancel
Save