载入中...
搜索中...
未找到
ActionPreviewProfile.h
浏览该文件的文档.
44 [[nodiscard]] static EVENGINE_API_EDITORS Result<ActionPreviewProfile> fromValue(const Value& value);
70 [[nodiscard]] virtual Result<ActionPreviewSkeleton> modelSkeleton(std::string_view modelUri) = 0;
72 [[nodiscard]] virtual Result<ActionPreviewSkeleton> animationSkeleton(std::string_view animationUri) = 0;
79enum class ActionPreviewCompatibility : std::uint8_t { Compatible, Retargetable, Incompatible, Unsupported };
116 [[nodiscard]] EVENGINE_API_EDITORS Result<void> save(const ActionPreviewProfile& profile) const;
118 [[nodiscard]] EVENGINE_API_EDITORS Result<ActionPreviewProfile> load(const AssetGuid& actionAsset) const;
120 [[nodiscard]] EVENGINE_API_EDITORS std::filesystem::path pathFor(const AssetGuid& actionAsset) const;
127[[nodiscard]] EVENGINE_API_EDITORS std::string_view actionPreviewShadingName(ActionPreviewShading shading) noexcept;
Versioned, deterministic authoring timeline for gameplay actions.
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Human-readable, scoped identifier in the form namespace:name.
Definition Identity.h:414
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:313
Stateless deterministic compatibility analysis over owning provider snapshots.
Definition ActionPreviewProfile.h:98
Disk sidecar store keyed only by stable action AssetGuid.
Definition ActionPreviewProfile.h:110
Optional provider implemented by an animation/model authoring integration.
Definition ActionPreviewProfile.h:64
virtual Result< ActionPreviewSkeleton > modelSkeleton(std::string_view modelUri)=0
Resolve a model URI to an owning skeleton topology.
virtual Result< ActionPreviewSkeleton > animationSkeleton(std::string_view animationUri)=0
Resolve an animation URI to an owning skeleton topology.
static constexpr const char * capabilityName
Definition ActionPreviewProfile.h:66
virtual Result< void > validateBoneMask(std::string_view boneMaskUri, const ActionPreviewSkeleton &target)=0
Validate a mask against the target skeleton without retaining either argument.
virtual ~IActionPreviewAssetProvider()=default
Definition ActionPreviewController.cpp:6
std::string_view actionPreviewShadingName(ActionPreviewShading shading) noexcept
Stable protocol spelling for a shading option.
Definition ActionPreviewProfile.cpp:89
constexpr std::string_view kActionPreviewProfileSchemaId
Definition ActionPreviewProfile.h:19
ActionPreviewCompatibility
Severity of one animation section's compatibility with the preview target.
Definition ActionPreviewProfile.h:79
@ Incompatible
@ Retargetable
@ Unsupported
ActionPreviewShading
Renderer-neutral shading preference persisted only for editor preview.
Definition ActionPreviewProfile.h:23
constexpr std::uint64_t kActionPreviewProfileSchemaVersion
Definition ActionPreviewProfile.h:20
Canonical action timeline asset shared by runtime and editor.
Definition ActionTimeline.h:192
One owning bone entry used across optional asset-provider boundaries.
Definition ActionPreviewProfile.h:50
auto operator<=>(const ActionPreviewBone &) const =default
Complete compatibility report suitable for timeline decoration and tooltips.
Definition ActionPreviewProfile.h:89
std::vector< ActionPreviewSectionDiagnostic > sections
Definition ActionPreviewProfile.h:90
EVENGINE_API_EDITORS bool canPreview() const noexcept
True when no section or profile diagnostic prevents preview.
Definition ActionPreviewProfile.cpp:180
std::vector< Diagnostic > profileDiagnostics
Definition ActionPreviewProfile.h:91
Asset-specific editor state kept outside the runtime action timeline.
Definition ActionPreviewProfile.h:26
bool showJointNames
Definition ActionPreviewProfile.h:36
auto operator<=>(const ActionPreviewProfile &) const =default
std::string previewModelUri
Definition ActionPreviewProfile.h:28
std::string boneMaskUri
Definition ActionPreviewProfile.h:31
EVENGINE_API_EDITORS Result< void > validate() const
Validate stable identity, URI spelling and enum state.
Definition ActionPreviewProfile.cpp:97
bool showRootMotion
Definition ActionPreviewProfile.h:32
AssetGuid actionAsset
Definition ActionPreviewProfile.h:27
std::string baseMotionUri
Definition ActionPreviewProfile.h:29
bool showSkeleton
Definition ActionPreviewProfile.h:35
ActionPreviewShading shading
Definition ActionPreviewProfile.h:37
static EVENGINE_API_EDITORS Result< ActionPreviewProfile > fromValue(const Value &value)
Decode and validate a sidecar transactionally.
Definition ActionPreviewProfile.cpp:127
std::string animationProfileUri
Definition ActionPreviewProfile.h:30
EVENGINE_API_EDITORS Result< Value > toValue() const
Encode the canonical sidecar value.
Definition ActionPreviewProfile.cpp:107
Owning diagnostic projection for one animation section.
Definition ActionPreviewProfile.h:82
ActionPreviewCompatibility compatibility
Definition ActionPreviewProfile.h:84
std::vector< Diagnostic > diagnostics
Definition ActionPreviewProfile.h:85
LogicalId sectionId
Definition ActionPreviewProfile.h:83
Owning skeleton topology independent of animation backend object lifetimes.
Definition ActionPreviewProfile.h:58
std::vector< ActionPreviewBone > bones
Definition ActionPreviewProfile.h:60
std::string sourceUri
Definition ActionPreviewProfile.h:59