From 47b9691f9bde62ea62f6601503997d93ed7ab64c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 16 Jul 2024 12:27:46 +0200 Subject: wa --- loader/impl.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'loader/impl.hpp') diff --git a/loader/impl.hpp b/loader/impl.hpp index b873ba82..9b3ab1c0 100644 --- a/loader/impl.hpp +++ b/loader/impl.hpp @@ -1,9 +1,9 @@ #pragma once -#include "compat/safe-ptr.hpp" #include "loader/loader.hpp" +#include "compat/safe-ptr.hpp" +#include "compat/borrowed-ptr-fwd.hpp" #include "atlas-loader-fwd.hpp" #include -#include #include #include #include @@ -45,26 +45,26 @@ struct loader_impl final : loader_ // >-----> ground >-----> [[nodiscard]] static atlas_loader* make_ground_atlas_loader(); safe_ptr> _ground_loader{ make_ground_atlas_loader() }; - const std::shared_ptr& ground_atlas(StringView filename, loader_policy policy) noexcept(false) override; + const bptr& ground_atlas(StringView filename, loader_policy policy) noexcept(false) override; ArrayView ground_atlas_list() noexcept(false) override; const ground_cell& invalid_ground_atlas() override; - std::shared_ptr get_ground_atlas(StringView name, Vector2ub size, pass_mode pass) noexcept(false) override; + bptr get_ground_atlas(StringView name, Vector2ub size, pass_mode pass) noexcept(false) override; // >-----> walls >-----> [[nodiscard]] static atlas_loader* make_wall_atlas_loader(); safe_ptr> _wall_loader{ make_wall_atlas_loader() }; - const std::shared_ptr& wall_atlas(StringView name, loader_policy policy) override; + const bptr& wall_atlas(StringView name, loader_policy policy) override; ArrayView wall_atlas_list() override; - std::shared_ptr get_wall_atlas(StringView filename) noexcept(false) override; + bptr get_wall_atlas(StringView filename) noexcept(false) override; const wall_cell& invalid_wall_atlas() override; // >-----> anim >-----> [[nodiscard]] static atlas_loader* make_anim_atlas_loader(); safe_ptr> _anim_loader{ make_anim_atlas_loader() }; ArrayView anim_atlas_list() override; - std::shared_ptr anim_atlas(StringView name, StringView dir, loader_policy policy) noexcept(false) override; + bptr anim_atlas(StringView name, StringView dir, loader_policy policy) noexcept(false) override; const anim_cell& invalid_anim_atlas() override; - std::shared_ptr get_anim_atlas(StringView path) noexcept(false) override; + bptr get_anim_atlas(StringView path) noexcept(false) override; // >-----> scenery >-----> [[nodiscard]] static atlas_loader* make_scenery_atlas_loader(); @@ -77,7 +77,7 @@ struct loader_impl final : loader_ // >-----> vobjs >-----> tsl::robin_map vobj_atlas_map; std::vector vobjs; - std::shared_ptr make_vobj_anim_atlas(StringView name, StringView image_filename); + bptr make_vobj_anim_atlas(StringView name, StringView image_filename); const struct vobj_cell& vobj(StringView name) override; ArrayView vobj_list() override; void get_vobj_list(); -- cgit v1.2.3