summaryrefslogtreecommitdiff
path: root/src/editor.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-02-01 22:11:28 +0500
committerilotterytea <iltsu@alright.party>2025-02-01 22:11:28 +0500
commit860773932a67fa0a30c5943336bef6e0be0414a1 (patch)
treebc3bc08027d4ace29587d414bbead409596f5afa /src/editor.hpp
parentc89db32c69c2ca3db059193591ec910d45fbbcc3 (diff)
feat: select a tile
Diffstat (limited to 'src/editor.hpp')
-rw-r--r--src/editor.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/editor.hpp b/src/editor.hpp
index eba7f14..97af5b4 100644
--- a/src/editor.hpp
+++ b/src/editor.hpp
@@ -2,6 +2,7 @@
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Texture.hpp>
+#include <memory>
#include <optional>
#include <string>
@@ -26,6 +27,8 @@ namespace silly::editor {
private:
Tileset &tileset;
TileFloor &floor;
+
+ std::optional<std::shared_ptr<TilesetTile>> selectedTile;
std::optional<NewTileState> newTileState;
};
} \ No newline at end of file