summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-30 20:04:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-10-30 20:04:31 +0100
commit980845008f904dcb2fc8a4244c1bc19ed2a3ad71 (patch)
treeaac164f8d32afcf55f3063be962fbc8124ec984c /editor
parent4aa0e3085afec924a1bb4e6336d7d7b2ade05218 (diff)
wall stuff
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor.hpp b/editor/editor.hpp
index 2d215a42..7cd8a72c 100644
--- a/editor/editor.hpp
+++ b/editor/editor.hpp
@@ -76,6 +76,8 @@ struct editor final
tile_editor& floor() noexcept { return _floor; }
const tile_editor& floor() const noexcept { return _floor; }
+ tile_editor& wall() noexcept { return _wall; }
+ const tile_editor& wall() const noexcept { return _wall; }
tile_editor* current();
const tile_editor* current() const;
@@ -95,6 +97,7 @@ struct editor final
private:
tile_editor _floor{ editor_mode::floor, "floor"};
+ tile_editor _wall{ editor_mode::floor, "wall"};
std::optional<global_coords> _last_pos;
editor_mode _mode = editor_mode::select;
bool _dirty = false;