summaryrefslogtreecommitdiffhomepage
path: root/loader/ground-traits.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
commit47b9691f9bde62ea62f6601503997d93ed7ab64c (patch)
treef0e08b4f37ced066ac18defdf233eec0e91b6cc0 /loader/ground-traits.hpp
parent6aabc74a535da1f2d5cf866346b31939d097cbac (diff)
wa
Diffstat (limited to 'loader/ground-traits.hpp')
-rw-r--r--loader/ground-traits.hpp8
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);
};