diff options
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index d07de4b..1426eaf 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -1,6 +1,7 @@ #include <entities.hpp> #include <engine.hpp> +#include <player.hpp> #include <components.hpp> void entityxTest(void) @@ -8,7 +9,7 @@ void entityxTest(void) entityx::Entity e = game::entities.create(); e.assign<Position>(100.0f, 100.0f); e.assign<Direction>(0.0f, 0.0f); - + e = game::entities.create(); e.assign<Position>(0.0f, 100.0f); e.assign<Direction>(-0.01f, 0.0f); @@ -18,4 +19,6 @@ void entityxTest(void) vec2(0, 0), vec2(19, 15)), vec2(0, 0)); + + game::engine.getSystem<PlayerSystem>()->setPlayer(e); } |