summaryrefslogtreecommitdiffstats
path: root/src/control/MapContext.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/control/MapContext.hpp')
-rw-r--r--src/control/MapContext.hpp4
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);