载入中...
搜索中...
未找到
ActionPrefabInstances.h
浏览该文件的文档.
1#pragma once
2
5#include "common/Result.h"
7
8#include <string>
9#include <vector>
10
11namespace eve::action {
12
15
18
24
33public:
34 static constexpr const char* capabilityName = "eve.action.prefab-instances";
36 virtual ~IActionPrefabInstances() = default;
37
43 [[nodiscard]] virtual std::vector<PrefabInstanceInfo> independentInstances() const = 0;
44
52};
53
54} // namespace eve::action
PrimitiveHandle handle
Move-only, checked operation results for the common layer.
Strong generation-qualified handles for non-ECS runtime registries.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Optional owner-thread service for prefab instances detached from an action block.
virtual Result< void > recycleIndependent(PrefabInstanceHandle handle)=0
Recycle one independent instance and invalidate its handle.
static constexpr const char * capabilityName
virtual ~IActionPrefabInstances()=default
Releases IActionPrefabInstances resources.
virtual std::vector< PrefabInstanceInfo > independentInstances() const =0
List current independent instances in stable slot order.
Owner tag preventing prefab instance handles from mixing with other registries.
Owning inspection record for one externally managed prefab instance.