diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-07 01:24:15 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-07 01:24:15 -0400 |
commit | 2417abe35038e903bf63d996ae6252173aa878a2 (patch) | |
tree | 38722a150bf08803d87157df37605127332d1b79 /src/script.hpp | |
parent | c9f8936fcb1afb07ead095f5c560473dc97eb3f6 (diff) |
Removed EntityX pointers from script system and replaced with references
Diffstat (limited to 'src/script.hpp')
-rw-r--r-- | src/script.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script.hpp b/src/script.hpp index 84c698c..d4e2234 100644 --- a/src/script.hpp +++ b/src/script.hpp @@ -46,11 +46,11 @@ private: */ sol::state lua; - entityx::EventManager* events; - entityx::EntityManager* manager; + entityx::EntityManager& manager; public: - ScriptSystem(void) {} + ScriptSystem(entityx::EntityManager& _manager): + manager(_manager) {} ~ScriptSystem(void) {} |