aboutsummaryrefslogtreecommitdiffstats
path: root/src/script.hpp
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-11 00:24:40 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-11 00:24:40 -0400
commit1d9c67f5719b3c55b1f2f2537e796e2ad95e1ac1 (patch)
tree98e9656f5855a86ed8247ec3dc13e247d617141c /src/script.hpp
parentb46aa08e48bdfa9008738ed5d599d6e7d11ede56 (diff)
parent2b095e30f7786526da9339ccada3aae7f2ab5df4 (diff)
Merge branch 'master' of github.com:tcsullivan/gamedev2
Diffstat (limited to 'src/script.hpp')
-rw-r--r--src/script.hpp8
1 files changed, 6 insertions, 2 deletions
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 <entityx/entityx.h>
#include <sol/sol.hpp>
+#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) {}