diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 12:27:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 12:27:46 +0200 |
commit | 47b9691f9bde62ea62f6601503997d93ed7ab64c (patch) | |
tree | f0e08b4f37ced066ac18defdf233eec0e91b6cc0 /loader/ground-traits.hpp | |
parent | 6aabc74a535da1f2d5cf866346b31939d097cbac (diff) |
wa
Diffstat (limited to 'loader/ground-traits.hpp')
-rw-r--r-- | loader/ground-traits.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/loader/ground-traits.hpp b/loader/ground-traits.hpp index f3fff4ee..c4d9b905 100644 --- a/loader/ground-traits.hpp +++ b/loader/ground-traits.hpp @@ -1,6 +1,6 @@ #pragma once #include "atlas-loader-fwd.hpp" -#include <memory> +#include "compat/borrowed-ptr.hpp" namespace floormat { struct ground_cell; class ground_atlas; } @@ -14,13 +14,13 @@ template<> struct atlas_loader_traits<ground_atlas> using Storage = atlas_storage<ground_atlas, Self>; static StringView loader_name(); - static const std::shared_ptr<Atlas>& atlas_of(const Cell& x); - static std::shared_ptr<Atlas>& atlas_of(Cell& x); + static const bptr<Atlas>& atlas_of(const Cell& x); + static bptr<Atlas>& atlas_of(Cell& x); static StringView name_of(const Cell& x); static String& name_of(Cell& x); static void atlas_list(Storage& s); static Cell make_invalid_atlas(Storage& st); - static std::shared_ptr<Atlas> make_atlas(StringView name, const Cell& c); + static bptr<Atlas> make_atlas(StringView name, const Cell& c); static Optional<Cell> make_cell(StringView name); }; |