Create a test for the ECS before we add more functionality.
This commit is contained in:
parent
143fe7784c
commit
ea6cf1362b
4 changed files with 13 additions and 6 deletions
12
dinkyecs.hpp
12
dinkyecs.hpp
|
@ -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…
Add table
Add a link
Reference in a new issue