summaryrefslogtreecommitdiffhomepage
path: root/editor/tile-editor.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-07 07:01:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-07 07:01:32 +0100
commitdbb6d49a5632a26885e6e388128d68fe1932a4ea (patch)
tree28ccf74c6fe06c1e79a98fc1d534c9086387b849 /editor/tile-editor.hpp
parent2a0f6513132982c17644fc0917ad1f632b2d5b81 (diff)
add missing includes
Diffstat (limited to 'editor/tile-editor.hpp')
-rw-r--r--editor/tile-editor.hpp11
1 files changed, 9 insertions, 2 deletions
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 <tuple>
#include <memory>
+#include <vector>
+#include <map>
+#include <Corrade/Containers/String.h>
namespace floormat {
@@ -17,10 +19,15 @@ private:
sel_none, sel_tile, sel_perm,
};
+ struct tuple final {
+ std::shared_ptr<tile_atlas> atlas;
+ std::vector<decltype(tile_image_proto::variant)> variant;
+ };
+
String _name;
std::map<std::string, std::shared_ptr<tile_atlas>> _atlases;
tile_image_proto _selected_tile;
- std::tuple<std::shared_ptr<tile_atlas>, std::vector<decltype(tile_image_proto::variant)>> _permutation;
+ tuple _permutation;
selection_mode _selection_mode = sel_none;
editor_mode _mode;
editor_wall_rotation _rotation = editor_wall_rotation::N;