From dbb6d49a5632a26885e6e388128d68fe1932a4ea Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 7 Nov 2022 07:01:32 +0100 Subject: add missing includes --- editor/app.cpp | 1 + editor/camera.cpp | 1 + editor/editor-enums.hpp | 1 + editor/editor.cpp | 2 +- editor/tile-editor.hpp | 11 +++++++++-- 5 files changed, 13 insertions(+), 3 deletions(-) (limited to 'editor') diff --git a/editor/app.cpp b/editor/app.cpp index 3e2c2be3..77f77f83 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -4,6 +4,7 @@ #include "floormat/settings.hpp" #include "src/loader.hpp" #include "world.hpp" +#include #include namespace floormat { diff --git a/editor/camera.cpp b/editor/camera.cpp index e10a995c..bb69c626 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -2,6 +2,7 @@ #include "src/global-coords.hpp" #include "shaders/tile.hpp" #include "floormat/main.hpp" +#include namespace floormat { diff --git a/editor/editor-enums.hpp b/editor/editor-enums.hpp index 604956cb..e7e83faf 100644 --- a/editor/editor-enums.hpp +++ b/editor/editor-enums.hpp @@ -1,4 +1,5 @@ #pragma once +#include "compat/integer-types.hpp" namespace floormat { diff --git a/editor/editor.cpp b/editor/editor.cpp index 99948aca..9676a22d 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -6,8 +6,8 @@ #include -#include #include +#include #include namespace floormat { diff --git a/editor/tile-editor.hpp b/editor/tile-editor.hpp index 0458ee79..9593139c 100644 --- a/editor/tile-editor.hpp +++ b/editor/tile-editor.hpp @@ -3,8 +3,10 @@ #include "editor-enums.hpp" #include "src/tile-image.hpp" #include "global-coords.hpp" -#include #include +#include +#include +#include namespace floormat { @@ -17,10 +19,15 @@ private: sel_none, sel_tile, sel_perm, }; + struct tuple final { + std::shared_ptr atlas; + std::vector variant; + }; + String _name; std::map> _atlases; tile_image_proto _selected_tile; - std::tuple, std::vector> _permutation; + tuple _permutation; selection_mode _selection_mode = sel_none; editor_mode _mode; editor_wall_rotation _rotation = editor_wall_rotation::N; -- cgit v1.2.3