diff options
| author | ilotterytea <iltsu@alright.party> | 2025-02-01 23:19:16 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-02-01 23:19:16 +0500 |
| commit | 91ffa8637cddddae07c42115788e5104a5faca7f (patch) | |
| tree | 69b392ec7ecdc82402b79a5bac3e11db50ddf81d /src/editor.hpp | |
| parent | 79c7edc335fc162e9d2ef9acc5cdf41fbd1bac76 (diff) | |
feat: tile rotation
Diffstat (limited to 'src/editor.hpp')
| -rw-r--r-- | src/editor.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/editor.hpp b/src/editor.hpp index 97af5b4..666694f 100644 --- a/src/editor.hpp +++ b/src/editor.hpp @@ -2,6 +2,7 @@ #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/Texture.hpp> +#include <SFML/Window/Event.hpp> #include <memory> #include <optional> #include <string> @@ -22,11 +23,13 @@ namespace silly::editor { : tileset(tileset), floor(floor) {} void update(const sf::RenderWindow &window); + void update(const sf::Event &event); void render(const sf::RenderWindow &window); private: Tileset &tileset; TileFloor &floor; + float rotation; std::optional<std::shared_ptr<TilesetTile>> selectedTile; std::optional<NewTileState> newTileState; |
