载入中...
搜索中...
未找到

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()

eve::Result< MeshVfxAsset > eve::stylize::MeshVfxAsset::fromJson ( std::string_view  json)
static

Parse, migrate, and validate a JSON asset without mutating live state.

参数
jsonUTF-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

◆ validate()

类成员变量说明

◆ 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

constexpr std::string_view eve::stylize::MeshVfxAsset::schemaId = "eve.stylize.mesh-vfx"
staticconstexpr

在文件 MeshVfxAsset.h 第 74 行定义.

被这些函数引用 fromJson() , 以及 toJson().

◆ schemaVersion

constexpr std::uint32_t eve::stylize::MeshVfxAsset::schemaVersion = 1
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().


该结构体的文档由以下文件生成: