summaryrefslogtreecommitdiffhomepage
path: root/editor/editor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.hpp')
-rw-r--r--editor/editor.hpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/editor/editor.hpp b/editor/editor.hpp
index 94cb7709..b25e6900 100644
--- a/editor/editor.hpp
+++ b/editor/editor.hpp
@@ -6,6 +6,7 @@
#include "scenery.hpp"
#include "editor-enums.hpp"
#include "tile-editor.hpp"
+#include "scenery-editor.hpp"
#include <optional>
#include <map>
@@ -18,30 +19,6 @@ struct world;
struct anim_atlas;
struct tile_atlas;
-struct scenery_editor final
-{
- struct pair final {
- std::shared_ptr<anim_atlas> atlas;
- scenery s;
- };
-
- scenery_editor() noexcept;
-
- void set_rotation(rotation r);
- void rotation() const;
- void next_rotation();
- void prev_rotation();
-
- void select_tile(const std::shared_ptr<anim_atlas>& atlas, enum rotation r, std::uint16_t frame);
- void clear_selection();
-
-private:
- void load_atlases();
-
- std::map<StringView, std::shared_ptr<anim_atlas>> _atlases;
- pair _selected_frame;
-};
-
struct editor final
{
[[nodiscard]] bool dirty() const noexcept { return _dirty; }