summaryrefslogtreecommitdiffhomepage
path: root/main/editor.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-16 11:41:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-16 11:41:17 +0200
commit01c6604fef366d4ecf3abd697fa26815438b726e (patch)
treecea3a557ca6a17b0e899f93adfaf32fd45c707cb /main/editor.hpp
parenta6bb7a8338abb294096743fddd55f11aa239aa57 (diff)
a
Diffstat (limited to 'main/editor.hpp')
-rw-r--r--main/editor.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/editor.hpp b/main/editor.hpp
index 993d057a..a971f821 100644
--- a/main/editor.hpp
+++ b/main/editor.hpp
@@ -14,7 +14,8 @@ enum class editor_mode : unsigned char {
struct tile_type final
{
tile_type(Containers::StringView name);
- std::shared_ptr<struct tile_atlas> atlas(Containers::StringView str);
+ std::shared_ptr<tile_atlas> maybe_atlas(Containers::StringView str);
+ std::shared_ptr<tile_atlas> atlas(Containers::StringView str);
auto begin() & { return _atlases.begin(); }
auto end() & { return _atlases.end(); }
auto begin() const&& { return _atlases.cbegin(); }
@@ -25,7 +26,7 @@ struct tile_type final
private:
std::string _name;
- std::map<std::string, std::shared_ptr<struct tile_atlas>> _atlases;
+ std::map<std::string, std::shared_ptr<tile_atlas>> _atlases;
void load_atlases();
};