diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-16 11:41:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-16 11:41:17 +0200 |
commit | 01c6604fef366d4ecf3abd697fa26815438b726e (patch) | |
tree | cea3a557ca6a17b0e899f93adfaf32fd45c707cb /main/editor.hpp | |
parent | a6bb7a8338abb294096743fddd55f11aa239aa57 (diff) |
a
Diffstat (limited to 'main/editor.hpp')
-rw-r--r-- | main/editor.hpp | 5 |
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(); }; |