diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-10 12:02:04 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-10 12:02:04 +0000 |
commit | a62fbea8d40f623ffcd60eced63f295cd55db084 (patch) | |
tree | 2374234d4364eb389df98fff0c4c180118331b27 /tests | |
parent | cbd6bf4a695370dbfc088bbe0cd6f270e1c112a7 (diff) | |
download | YAGE-a62fbea8d40f623ffcd60eced63f295cd55db084.tar.gz YAGE-a62fbea8d40f623ffcd60eced63f295cd55db084.zip |
[Engine] Adding initial components for an ECS.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/engine/test.cpp | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 36afa574..5b7d6fd3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -32,3 +32,4 @@ make_test(thread 1) make_test(syncqueue 1) make_test(active 1) make_test(struct ${SIMULATION_RUNS}) +make_test(engine ${SIMULATION_RUNS}) diff --git a/tests/engine/test.cpp b/tests/engine/test.cpp new file mode 100644 index 00000000..57680b99 --- /dev/null +++ b/tests/engine/test.cpp @@ -0,0 +1,16 @@ +#include <yage/engine/space.h> + +#include <yage/yage.h> + +int main() +{ + yage::Space space; + auto entity = space.createEntity(); + auto entity2 = space.createEntity(); + auto entity3 = space.createEntity(); + + yLogInfo << "Entity 1: " << entity; + yLogInfo << "Entity 3: " << entity3; + yLogInfo << "Entity 2: " << entity2; + return 0; +} |