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

Versioned attack VFX composition recipe. 更多...

#include <AttackVfxRecipe.h>

Public 成员函数

Result< std::string > toJson () const
 Serialize this recipe in canonical current-schema JSON form.
 
Result< void > validate () const
 Validate id, phases, optional skin, and budget invariants.
 

静态 Public 成员函数

static Result< AttackVfxRecipe > fromJson (std::string_view json)
 Parse, validate, and return a complete recipe without mutating live state.
 

Public 属性

LogicalId id
 
std::vector< AttackVfxPhase > phases
 
std::optional< LogicalId > skinId
 
std::optional< AttackVfxSkin > skin
 
AttackVfxBudget budget
 

静态 Public 属性

static constexpr std::string_view schemaId = "eve.stylize.attack-vfx"
 
static constexpr std::uint32_t schemaVersion = 1
 

详细描述

Versioned attack VFX composition recipe.

@ownership Immutable input once validated; runtime copies into live state. @thread Affine to the authoring / simulation owner; no internal locks.

在文件 AttackVfxRecipe.h 第 189 行定义.

成员函数说明

◆ fromJson()

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

Parse, validate, and return a complete recipe without mutating live state.

参数
jsonUTF-8 JSON. Unknown fields are rejected.

在文件 AttackVfxRecipe.cpp 第 569 行定义.

引用了 budget, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Value::fromJson(), id, eve::InvalidArgument, object, phases, schemaId, schemaVersion, skin, skinId, eve::Result< T >::success(), valid , 以及 validate().

被这些函数引用 eve::stylize_action::StylizeAction::registerRecipeJson() , 以及 eve::stylize::AttackVfxRecipeSlot::reload().

◆ toJson()

Result< std::string > eve::stylize::AttackVfxRecipe::toJson ( ) const

◆ validate()

Result< void > eve::stylize::AttackVfxRecipe::validate ( ) const

类成员变量说明

◆ budget

AttackVfxBudget eve::stylize::AttackVfxRecipe::budget

在文件 AttackVfxRecipe.h 第 197 行定义.

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

◆ id

LogicalId eve::stylize::AttackVfxRecipe::id

在文件 AttackVfxRecipe.h 第 193 行定义.

被这些函数引用 fromJson() , 以及 eve::stylize::AttackVfxRuntime::registerRecipe().

◆ phases

std::vector<AttackVfxPhase> eve::stylize::AttackVfxRecipe::phases

在文件 AttackVfxRecipe.h 第 194 行定义.

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

◆ schemaId

constexpr std::string_view eve::stylize::AttackVfxRecipe::schemaId = "eve.stylize.attack-vfx"
staticconstexpr

在文件 AttackVfxRecipe.h 第 190 行定义.

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

◆ schemaVersion

constexpr std::uint32_t eve::stylize::AttackVfxRecipe::schemaVersion = 1
staticconstexpr

在文件 AttackVfxRecipe.h 第 191 行定义.

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

◆ skin

std::optional<AttackVfxSkin> eve::stylize::AttackVfxRecipe::skin

Optional inline skin for self-contained assets.

在文件 AttackVfxRecipe.h 第 196 行定义.

被这些函数引用 fromJson(), eve::stylize::AttackVfxRuntime::registerRecipe(), eve::stylize::AttackVfxRuntime::Impl::resolveSkinId(), toJson() , 以及 validate().

◆ skinId

std::optional<LogicalId> eve::stylize::AttackVfxRecipe::skinId

External skin reference.

在文件 AttackVfxRecipe.h 第 195 行定义.

被这些函数引用 fromJson(), eve::stylize::AttackVfxRuntime::Impl::resolveSkinId(), toJson() , 以及 validate().


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