summaryrefslogtreecommitdiffhomepage
path: root/editor/vobj-editor.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 /editor/vobj-editor.hpp
parent6aabc74a535da1f2d5cf866346b31939d097cbac (diff)
wa
Diffstat (limited to 'editor/vobj-editor.hpp')
-rw-r--r--editor/vobj-editor.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/vobj-editor.hpp b/editor/vobj-editor.hpp
index 0057504c..c614b4e7 100644
--- a/editor/vobj-editor.hpp
+++ b/editor/vobj-editor.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "src/object-type.hpp"
#include "src/object-id.hpp"
+#include "compat/borrowed-ptr-fwd.hpp"
#include <memory>
#include <map>
#include <cr/String.h>
@@ -20,11 +21,11 @@ struct vobj_factory
virtual ~vobj_factory() noexcept;
virtual const vobj_cell& info() const = 0;
virtual object_type type() const = 0;
- virtual std::shared_ptr<object> make(world& w, object_id id, global_coords pos) const = 0;
+ virtual bptr<object> make(world& w, object_id id, global_coords pos) const = 0;
StringView name() const;
StringView descr() const;
- std::shared_ptr<anim_atlas> atlas() const;
+ bptr<anim_atlas> atlas() const;
};
class vobj_editor final