diff options
Diffstat (limited to 'editor/ground-editor.hpp')
-rw-r--r-- | editor/ground-editor.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editor/ground-editor.hpp b/editor/ground-editor.hpp index 9745d14b..b27065f0 100644 --- a/editor/ground-editor.hpp +++ b/editor/ground-editor.hpp @@ -28,18 +28,18 @@ class ground_editor final public: ground_editor(); ~ground_editor() noexcept; - std::shared_ptr<ground_atlas> maybe_atlas(StringView str); - std::shared_ptr<ground_atlas> atlas(StringView str); + bptr<ground_atlas> maybe_atlas(StringView str); + bptr<ground_atlas> atlas(StringView str); typename std::map<StringView, ground_cell>::const_iterator begin() const noexcept; typename std::map<StringView, ground_cell>::const_iterator end() const noexcept; StringView name() const noexcept; void clear_selection(); - void select_tile(const std::shared_ptr<ground_atlas>& atlas, size_t variant); - void select_tile_permutation(const std::shared_ptr<ground_atlas>& atlas); - bool is_tile_selected(const std::shared_ptr<const ground_atlas>& atlas, size_t variant) const; - bool is_permutation_selected(const std::shared_ptr<const ground_atlas>& atlas) const; - bool is_atlas_selected(const std::shared_ptr<const ground_atlas>& atlas) const; + void select_tile(const bptr<ground_atlas>& atlas, size_t variant); + void select_tile_permutation(const bptr<ground_atlas>& atlas); + bool is_tile_selected(const bptr<const ground_atlas>& atlas, size_t variant) const; + bool is_permutation_selected(const bptr<const ground_atlas>& atlas) const; + bool is_atlas_selected(const bptr<const ground_atlas>& atlas) const; bool is_anything_selected() const; tile_image_proto get_selected(); void place_tile(world& world, global_coords pos, const tile_image_proto& img); |