summaryrefslogtreecommitdiffhomepage
path: root/editor/app.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-13 05:20:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-13 05:20:17 +0100
commit728d34aaaa4c993d4b1f2c0f508f3a33aa069cb0 (patch)
tree6a2cde51ddce3ba2d7a563c06b10b83f2361708e /editor/app.hpp
parentff1c79d87ba99a2cd3fe97f7047b892445d69191 (diff)
dw
Diffstat (limited to 'editor/app.hpp')
-rw-r--r--editor/app.hpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index 9eb61d86..8e76a9dd 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -1,15 +1,18 @@
#pragma once
#include "compat/defs.hpp"
#include "compat/enum-bitset.hpp"
-#include "editor.hpp"
#include "floormat/app.hpp"
#include "keys.hpp"
+#include "src/global-coords.hpp"
#include "src/object-id.hpp"
+#include "editor-enums.hpp"
#include "tests.hpp"
#include <memory>
#include <array>
+#include <vector> // todo try removing?
#include <Corrade/Containers/Pointer.h>
#include <Corrade/Containers/Optional.h>
+#include <Magnum/Math/Vector2.h>
namespace Magnum::GL {
template<UnsignedInt dimensions> class Texture;
@@ -25,15 +28,18 @@ struct meshes;
namespace floormat {
-struct chunk;
+struct fm_settings;
struct floormat_main;
+struct world;
+struct chunk;
class ground_atlas;
-struct fm_settings;
class anim_atlas;
struct critter;
struct point;
+class editor;
-struct cursor_state final {
+struct cursor_state final
+{
Optional<Vector2i> pixel;
Optional<global_coords> tile;
Optional<Vector2b> subpixel;
@@ -169,8 +175,8 @@ private:
Pointer<ImGuiIntegration::Context> _imgui;
Pointer<floormat::wireframe::meshes> _wireframe;
Pointer<tests_data_> _tests;
+ Pointer<editor> _editor;
- editor _editor{this};
key_set keys;
std::array<int, key_set::COUNT> key_modifiers = {};
std::vector<popup_target> inspectors;