From 2b095e30f7786526da9339ccada3aae7f2ab5df4 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Tue, 10 Sep 2019 23:55:54 -0400 Subject: Started world system --- src/script.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/script.hpp') diff --git a/src/script.hpp b/src/script.hpp index d4e2234..5c4c780 100644 --- a/src/script.hpp +++ b/src/script.hpp @@ -24,6 +24,8 @@ #include #include +#include "world.hpp" + struct EntitySpawnEvent { sol::object ref; @@ -47,10 +49,12 @@ private: sol::state lua; entityx::EntityManager& manager; + + WorldSystem &worldSystem; public: - ScriptSystem(entityx::EntityManager& _manager): - manager(_manager) {} + ScriptSystem(entityx::EntityManager& _mg, WorldSystem& _ws): + manager(_mg), worldSystem(_ws) {} ~ScriptSystem(void) {} -- cgit v1.2.3