From 47b9691f9bde62ea62f6601503997d93ed7ab64c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 16 Jul 2024 12:27:46 +0200 Subject: wa --- editor/vobj-editor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'editor/vobj-editor.cpp') diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp index 9eb36e39..d4497fda 100644 --- a/editor/vobj-editor.cpp +++ b/editor/vobj-editor.cpp @@ -13,7 +13,7 @@ namespace floormat { StringView vobj_factory::name() const { return info().name; } StringView vobj_factory::descr() const { return info().descr; } -std::shared_ptr vobj_factory::atlas() const { return info().atlas; } +bptr vobj_factory::atlas() const { return info().atlas; } vobj_factory::vobj_factory() = default; vobj_factory::~vobj_factory() noexcept = default; @@ -81,7 +81,7 @@ struct light_factory final : vobj_factory { object_type type() const override; const vobj_cell& info() const override; - std::shared_ptr make(world& w, object_id id, global_coords pos) const override; + bptr make(world& w, object_id id, global_coords pos) const override; }; object_type light_factory::type() const { return object_type::light; } @@ -95,7 +95,7 @@ const vobj_cell& light_factory::info() const return ret; } -std::shared_ptr light_factory::make(world& w, object_id id, global_coords pos) const +bptr light_factory::make(world& w, object_id id, global_coords pos) const { auto ret = w.make_object(id, pos, light_proto{}); return ret; @@ -105,7 +105,7 @@ struct hole_factory final : vobj_factory { object_type type() const override; const vobj_cell& info() const override; - std::shared_ptr make(world& w, object_id id, global_coords pos) const override; + bptr make(world& w, object_id id, global_coords pos) const override; }; object_type hole_factory::type() const { return object_type::hole; } @@ -119,7 +119,7 @@ const vobj_cell& hole_factory::info() const return ret; } -std::shared_ptr hole_factory::make(world& w, object_id id, global_coords pos) const +bptr hole_factory::make(world& w, object_id id, global_coords pos) const { auto ret = w.make_object(id, pos, hole_proto{}); return ret; -- cgit v1.2.3