载入中...
搜索中...
未找到
ActionAttackVfxBlock.cpp
浏览该文件的文档.
40 uri != payload.end() && uri->second.getIf<std::string>() && !uri->second.getIf<std::string>()->empty();
43 DiagnosticCode::InvalidArgument, "AttackVfx requires exactly one of recipeId or uri", "recipeId"));
78 DiagnosticCode::InvalidArgument, "AttackVfx lifetimeSeconds must be non-negative", "lifetimeSeconds"));
Typed AttackVfx action-block payload contract.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static std::optional< LogicalId > parse(std::string_view text)
Parses a scoped logical name.
Definition Identity.cpp:37
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Definition AbilityAsset.cpp:13
ActionAttackVfxShape
Authored AttackVfx block shape used to select lifetime validation.
Definition ActionAttackVfxBlock.h:23
@ InvalidArgument
Owning validated AttackVfx settings shared by runtime and editor preview.
Definition ActionAttackVfxBlock.h:40
static Result< ActionAttackVfxBinding > fromPayload(const Value::Object &payload, ActionAttackVfxShape shape)
Decode one dynamic AttackVfx payload transactionally.
Definition ActionAttackVfxBlock.cpp:30
std::vector< ActionAttackVfxCue > cues
Definition ActionAttackVfxBlock.h:46
ActionSpatialBinding spatial
Definition ActionAttackVfxBlock.h:44
double lifetimeSeconds
Definition ActionAttackVfxBlock.h:45
std::optional< LogicalId > skinId
Definition ActionAttackVfxBlock.h:43
One cue scheduled relative to AttackVfx play().
Definition ActionAttackVfxBlock.h:26
double offsetSeconds
Definition ActionAttackVfxBlock.h:27
static Result< ActionSpatialBinding > fromPayload(const Value::Object &payload)
Decode and validate the common spatial fields in an owning payload.
Definition ActionSpatialBlock.cpp:64