summaryrefslogtreecommitdiffstats
path: root/src/control/RPGEdit.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/control/RPGEdit.hpp')
-rw-r--r--src/control/RPGEdit.hpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/control/RPGEdit.hpp b/src/control/RPGEdit.hpp
index edab13c..f045265 100644
--- a/src/control/RPGEdit.hpp
+++ b/src/control/RPGEdit.hpp
@@ -26,7 +26,12 @@
#pragma once
-#include <SDL.h>
+#include "EventBus.hpp"
+#include "InputHandler.hpp"
+#include "MapContext.hpp"
+
+#include <memory>
+#include <mutex>
namespace RPGEdit {
@@ -35,11 +40,21 @@ namespace Control {
class RPGEdit {
private:
+ EventBus eventBus;
+ InputHandler inputHandler;
+ ImageLoader tileLoader;
-public:
- RPGEdit();
- ~RPGEdit();
+ std::shared_ptr<MapContext> ctx;
+
+ std::shared_ptr<View::Window> window;
+ std::shared_ptr<View::MapView> mapView;
+ std::mutex modelLock;
+
+ bool systemIter(unsigned ticks);
+ void systemLoop();
+
+public:
void run();
};