summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-10 11:59:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-10 11:59:20 +0100
commit4c5ee43dcc535c8ef84f042b252ff6d4e724754d (patch)
tree6d7664059beb5df93261cdf5bfd94012af41416a /editor
parent50bddb29135723b6b2a825302d239ebf8ed7fb9f (diff)
fix no-pch msvc build
Diffstat (limited to 'editor')
-rw-r--r--editor/app.hpp1
-rw-r--r--editor/tile-editor.cpp3
-rw-r--r--editor/tile-editor.hpp2
3 files changed, 4 insertions, 2 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index d784fe9a..63fcd6ae 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -2,7 +2,6 @@
#include "compat/defs.hpp"
#include "compat/enum-bitset.hpp"
#include "editor.hpp"
-#include "src/global-coords.hpp"
#include "draw/wireframe.hpp"
#include "draw/quad-floor.hpp"
#include "draw/quad-wall-n.hpp"
diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp
index 66ca1e7b..965245a9 100644
--- a/editor/tile-editor.cpp
+++ b/editor/tile-editor.cpp
@@ -6,6 +6,7 @@
#include "random.hpp"
#include "serialize/json-helper.hpp"
#include "serialize/tile-atlas.hpp"
+#include <Corrade/Containers/StringStl.h>
namespace floormat {
@@ -50,6 +51,8 @@ std::shared_ptr<tile_atlas> tile_editor::atlas(StringView str)
fm_abort("no such atlas: %s", str.cbegin());
}
+StringView tile_editor::name() const noexcept { return _name; }
+
void tile_editor::clear_selection()
{
_selected_tile = {};
diff --git a/editor/tile-editor.hpp b/editor/tile-editor.hpp
index df33c761..53b12e55 100644
--- a/editor/tile-editor.hpp
+++ b/editor/tile-editor.hpp
@@ -44,7 +44,7 @@ public:
auto cend() const noexcept { return _atlases.cend(); }
auto begin() const noexcept { return _atlases.cbegin(); }
auto end() const noexcept { return _atlases.cend(); }
- StringView name() const noexcept { return _name; }
+ StringView name() const noexcept;
editor_mode mode() const noexcept { return _mode; }
editor_wall_rotation rotation() const noexcept { return _rotation; }