From 7ab99aabe8509e84b9b5b04aafa1e1ae20b40512 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 16 Oct 2022 21:51:07 +0200 Subject: a --- main/editor.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'main/editor.hpp') diff --git a/main/editor.hpp b/main/editor.hpp index 44149555..db4da59e 100644 --- a/main/editor.hpp +++ b/main/editor.hpp @@ -1,4 +1,5 @@ #pragma once +#include "compat/defs.hpp" #include "tile-atlas.hpp" #include #include @@ -53,7 +54,7 @@ private: std::tuple, std::uint8_t> get_selected_perm(); }; -struct editor_state final +struct editor final { [[nodiscard]] bool dirty() const { return _dirty; } void set_dirty(bool value) { _dirty = value; } @@ -63,13 +64,12 @@ struct editor_state final tile_type& floor() { return _floor; } const tile_type& floor() const { return _floor; } - editor_state(); + void click_at_tile(Vector2 pos, int mouse_button); - editor_state(const editor_state&) = delete; - editor_state& operator=(const editor_state&) = delete; - - editor_state(editor_state&&) noexcept = default; - editor_state& operator=(editor_state&&) noexcept = default; + editor(); + editor(editor&&) noexcept = default; + editor& operator=(editor&&) noexcept = default; + DECLARE_DELETED_COPY_ASSIGNMENT(editor); private: tile_type _floor{editor_mode::floor, "floor"}; -- cgit v1.2.3