Reusable elemental / style skin applied at play time. 更多...
#include <AttackVfxRecipe.h>
Public 成员函数 | |
| Result< void > | validate () const |
| Validate id, palette range, and finite profile values. | |
| Result< std::string > | toJson () const |
| Serialize in canonical current-schema JSON. | |
静态 Public 成员函数 | |
| static Result< AttackVfxSkin > | fromJson (std::string_view json) |
| Parse a standalone skin document. | |
Public 属性 | |
| LogicalId | id |
| AttackVfxPalette | palette |
| std::map< std::string, std::string > | styleHints |
| std::map< std::string, float > | shakeProfile |
| std::map< std::string, float > | distortionProfile |
| std::string | statusOverlayUri |
详细描述
Reusable elemental / style skin applied at play time.
Skins do not fork logic. They supply palette, style hint aliases, shake / distortion profiles, and an optional sustained status overlay URI.
在文件 AttackVfxRecipe.h 第 152 行定义.
成员函数说明
◆ fromJson()
|
static |
Parse a standalone skin document.
- 参数
-
json UTF-8 JSON with schema eve.stylize.attack-vfx-skin.
在文件 AttackVfxRecipe.cpp 第 561 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Value::fromJson() , 以及 eve::InvalidArgument.
被这些函数引用 eve::stylize_action::StylizeAction::registerSkinJson().
◆ toJson()
| Result< std::string > eve::stylize::AttackVfxSkin::toJson | ( | ) | const |
Serialize in canonical current-schema JSON.
在文件 AttackVfxRecipe.cpp 第 723 行定义.
引用了 eve::Result< T >::failure(), eve::Value::toJson(), valid , 以及 validate().
◆ validate()
| Result< void > eve::stylize::AttackVfxSkin::validate | ( | ) | const |
Validate id, palette range, and finite profile values.
在文件 AttackVfxRecipe.cpp 第 519 行定义.
引用了 c, distortionProfile, eve::stylize::AttackVfxPalette::emissive, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, name, palette, path, eve::stylize::AttackVfxPalette::primary, s, eve::stylize::AttackVfxPalette::secondary, shakeProfile, eve::Result< T >::success() , 以及 value.
被这些函数引用 eve::stylize::AttackVfxRuntime::registerSkin() , 以及 toJson().
类成员变量说明
◆ distortionProfile
| std::map<std::string, float> eve::stylize::AttackVfxSkin::distortionProfile |
在文件 AttackVfxRecipe.h 第 157 行定义.
被这些函数引用 validate().
◆ id
| LogicalId eve::stylize::AttackVfxSkin::id |
在文件 AttackVfxRecipe.h 第 153 行定义.
◆ palette
| AttackVfxPalette eve::stylize::AttackVfxSkin::palette |
在文件 AttackVfxRecipe.h 第 154 行定义.
被这些函数引用 validate().
◆ shakeProfile
| std::map<std::string, float> eve::stylize::AttackVfxSkin::shakeProfile |
在文件 AttackVfxRecipe.h 第 156 行定义.
被这些函数引用 validate().
◆ statusOverlayUri
| std::string eve::stylize::AttackVfxSkin::statusOverlayUri |
在文件 AttackVfxRecipe.h 第 158 行定义.
被这些函数引用 eve::stylize::AttackVfxRuntime::Impl::startPhaseLayers().
◆ styleHints
| std::map<std::string, std::string> eve::stylize::AttackVfxSkin::styleHints |
在文件 AttackVfxRecipe.h 第 155 行定义.
该结构体的文档由以下文件生成:
- src/modules/stylize/AttackVfxRecipe.h
- src/modules/stylize/AttackVfxRecipe.cpp