载入中...
搜索中...
未找到
EditorPrefab.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <functional>
8#include <string>
9#include <vector>
10
11namespace eve::editor {
12
22
28 std::vector<PrefabObjectRecord> objects;
29};
30
33 std::string instanceId;
36 std::vector<DomainOperation> operations;
37};
38
46
49 EditorStatus status = EditorStatus::Failed;
52 std::vector<AssetGuid> dependencyOrder;
53 std::vector<EditorDiagnostic> diagnostics;
54};
55
58public:
59 using PrefabResolver = std::function<Result<PrefabAssetSnapshot>(const AssetGuid&)>;
62 const ObjectId& root) const;
65 const std::string& instanceId,
66 const ObjectId& parent,
67 const SceneTargetBase& scene) const;
70 const std::string& instanceId,
71 const ObjectId& parent,
72 const SceneTargetBase& scene) const;
75 const std::string& instanceId,
76 const ObjectId& parent,
77 const SceneTargetBase& scene) const;
80 const PrefabAssetSnapshot& prefab, const std::string& instanceId,
81 const ObjectId& parent, const SceneTargetBase& scene) const;
83 PrefabDependencyReport inspectDependencies(const PrefabAssetSnapshot& prefab,
84 const PrefabResolver& resolver) const;
86 Result<PrefabAssetSnapshot> refreshNestedRevisions(const PrefabAssetSnapshot& prefab,
87 const PrefabResolver& resolver) const;
89 EditorValue snapshotValue(const PrefabAssetSnapshot& prefab) const;
91 Result<PrefabAssetSnapshot> loadSnapshot(const EditorValue& snapshot) const;
92};
93
94} // namespace eve::editor
int root
Definition AnimSmr.cpp:119
std::string prefab
#define EVENGINE_API_EDITORS
Definition Export.h:112
std::int32_t parent
std::weak_ptr< PrimitiveScene > scene
Move-only operation result carrying either a value or Status.
Definition Result.h:155
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Deterministic owning value tree shared by authoring hosts.
Backend-neutral prefab capture, instantiate and override planning.
std::function< Result< PrefabAssetSnapshot >(const AssetGuid &)> PrefabResolver
Shared in-memory scene target implementation for document/runtime adapters.
Definition SceneTarget.h:86
eve::editing::Revision Revision
StatusCode
Stable outcome category for an operation.
Definition Status.h:27
Runtime-neutral prefab authoring snapshot.
std::vector< PrefabObjectRecord > objects
Nested-prefab dependency diagnostics tied to the inspected root revision.
std::vector< AssetGuid > dependencyOrder
std::vector< EditorDiagnostic > diagnostics
Stable identity mapping returned with an instantiated prefab plan.
std::vector< DomainOperation > operations
One stable scene object stored relative to a prefab root.
SceneTransformValue transform
One inspector/hierarchy badge describing an instance override.
Serializable transform exchanged across the scene editing boundary.