Versioned, backend-neutral description of a real-time mesh effect. 更多...
#include <MeshVfxAsset.h>
Public 成员函数 | |
| eve::Result< std::string > | toJson () const |
| Serialize this asset in canonical current-schema JSON form. | |
| eve::Result< void > | validate () const |
| Validate all layer, playback, parameter, and trail invariants. | |
静态 Public 成员函数 | |
| static eve::Result< MeshVfxAsset > | fromJson (std::string_view json) |
| Parse, migrate, and validate a JSON asset without mutating live state. | |
Public 属性 | |
| std::vector< MeshVfxLayerAsset > | layers |
| std::optional< TrailSettings > | trail |
| std::optional< MeshVfxTrailBinding > | trailBinding |
| std::vector< MeshVfxEventAsset > | events |
| MeshVfxAnimationTriggers | animationTriggers |
静态 Public 属性 | |
| static constexpr std::string_view | schemaId = "eve.stylize.mesh-vfx" |
| static constexpr std::uint32_t | schemaVersion = 1 |
详细描述
Versioned, backend-neutral description of a real-time mesh effect.
在文件 MeshVfxAsset.h 第 73 行定义.
成员函数说明
◆ fromJson()
|
static |
Parse, migrate, and validate a JSON asset without mutating live state.
- 参数
-
json UTF-8 JSON text. Version 0 single-style assets are migrated to version 1.
- 返回
- Complete asset or a structured diagnostic. Unknown fields are rejected.
在文件 MeshVfxAsset.cpp 第 273 行定义.
引用了 animationTriggers, binding, eve::Diagnostic::error(), events, eve::Result< T >::failure(), eve::Value::fromJson(), index, eve::InvalidArgument, key, layer, layers, root, schemaId, schemaVersion, eve::Result< T >::success(), trail, eve::UnknownVersion , 以及 valid.
被这些函数引用 eve::stylize_editing::MeshVfxAssetTarget::applyDomainOperation(), eve::asset_stylize::EvpackMeshVfx::load(), eve::stylize_editing::MeshVfxAssetTarget::makeSet(), eve::stylize_editing::MeshVfxAssetTarget::MeshVfxAssetTarget() , 以及 eve::stylize::MeshVfxAssetSlot::reload().
◆ toJson()
| eve::Result< std::string > eve::stylize::MeshVfxAsset::toJson | ( | ) | const |
Serialize this asset in canonical current-schema JSON form.
- 返回
- UTF-8 JSON or a structured serialization diagnostic.
在文件 MeshVfxAsset.cpp 第 344 行定义.
引用了 animationTriggers, curve, events, eve::Result< T >::failure(), key, layer, layers, name, object, eve::stylize::MeshVfxAnimationTriggers::play, root, schemaId, schemaVersion, eve::stylize::MeshVfxAnimationTriggers::stop, eve::Value::toJson(), trail, trailBinding, eve::stylize::MeshVfxAnimationTriggers::trailBreak, valid, validate(), value , 以及 values.
◆ validate()
| eve::Result< void > eve::stylize::MeshVfxAsset::validate | ( | ) | const |
Validate all layer, playback, parameter, and trail invariants.
在文件 MeshVfxAsset.cpp 第 428 行定义.
引用了 animationTriggers, curve, eve::Diagnostic::error(), events, eve::Result< T >::failure(), index, eve::InvalidArgument, key, layer, layers, name, path, eve::stylize::MeshVfxAnimationTriggers::play, previous, eve::stylize::MeshVfxAnimationTriggers::stop, eve::Result< T >::success(), trail, trailBinding, eve::stylize::MeshVfxAnimationTriggers::trailBreak , 以及 value.
被这些函数引用 eve::stylize::MeshVfxAssetInstance::create(), eve::stylize::MeshVfxAssetSlot::MeshVfxAssetSlot() , 以及 toJson().
类成员变量说明
◆ animationTriggers
| MeshVfxAnimationTriggers eve::stylize::MeshVfxAsset::animationTriggers |
在文件 MeshVfxAsset.h 第 81 行定义.
被这些函数引用 fromJson(), toJson() , 以及 validate().
◆ events
| std::vector<MeshVfxEventAsset> eve::stylize::MeshVfxAsset::events |
在文件 MeshVfxAsset.h 第 80 行定义.
被这些函数引用 fromJson(), toJson() , 以及 validate().
◆ layers
| std::vector<MeshVfxLayerAsset> eve::stylize::MeshVfxAsset::layers |
在文件 MeshVfxAsset.h 第 77 行定义.
被这些函数引用 fromJson(), toJson() , 以及 validate().
◆ schemaId
|
staticconstexpr |
在文件 MeshVfxAsset.h 第 74 行定义.
被这些函数引用 fromJson() , 以及 toJson().
◆ schemaVersion
|
staticconstexpr |
在文件 MeshVfxAsset.h 第 75 行定义.
被这些函数引用 fromJson() , 以及 toJson().
◆ trail
| std::optional<TrailSettings> eve::stylize::MeshVfxAsset::trail |
在文件 MeshVfxAsset.h 第 78 行定义.
被这些函数引用 fromJson(), toJson() , 以及 validate().
◆ trailBinding
| std::optional<MeshVfxTrailBinding> eve::stylize::MeshVfxAsset::trailBinding |
在文件 MeshVfxAsset.h 第 79 行定义.
被这些函数引用 toJson() , 以及 validate().
该结构体的文档由以下文件生成:
- src/modules/stylize/MeshVfxAsset.h
- src/modules/stylize/MeshVfxAsset.cpp