diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-14 23:12:07 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-14 23:12:07 +0100 |
commit | 0b3e29dea9863c4b5ca0c77958bbcb32a05867ca (patch) | |
tree | f96454b1c29d73ee5c083b5b2fdb988bc574542d /src/control/MapContext.hpp | |
parent | f05141f1f78d9e0d917b2cc07f0fb09fd7f62801 (diff) | |
download | rpgedit-0b3e29dea9863c4b5ca0c77958bbcb32a05867ca.tar rpgedit-0b3e29dea9863c4b5ca0c77958bbcb32a05867ca.zip |
Some work towards scriptable events
Diffstat (limited to 'src/control/MapContext.hpp')
-rw-r--r-- | src/control/MapContext.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/control/MapContext.hpp b/src/control/MapContext.hpp index 18d4cfe..5e17a42 100644 --- a/src/control/MapContext.hpp +++ b/src/control/MapContext.hpp @@ -28,6 +28,7 @@ #include "EventBus.hpp" #include "InputHandler.hpp" +#include "ScriptContext.hpp" #include "../model/Map.hpp" #include "../view/MapView.hpp" @@ -43,6 +44,7 @@ class MapContext { private: EventBus *const eventBus; InputHandler *const inputHandler; + ScriptContext *const scriptContext; std::unique_ptr<View::MapView> view; @@ -59,7 +61,7 @@ private: } public: - MapContext(EventBus *eventBus0, InputHandler *inputHandler0, const std::shared_ptr<View::Window> &window, const Model::Map &map0); + MapContext(EventBus *eventBus0, InputHandler *inputHandler0, ScriptContext *scriptContext0, const std::shared_ptr<View::Window> &window, const Model::Map &map0); void render(uint64_t time) { view->render(&map, getViewPosition(time), time); |