载入中...
搜索中...
未找到
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={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static std::optional< LogicalId > parse(std::string_view text)
Parses a scoped logical name.
Definition Identity.cpp:36
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Definition AbilityAsset.cpp:9
ActionAttackVfxShape
Authored AttackVfx block shape used to select lifetime validation.
Definition ActionAttackVfxBlock.h:19
@ InvalidArgument
Owning validated AttackVfx settings shared by runtime and editor preview.
Definition ActionAttackVfxBlock.h:36
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:42
ActionSpatialBinding spatial
Definition ActionAttackVfxBlock.h:40
double lifetimeSeconds
Definition ActionAttackVfxBlock.h:41
std::optional< LogicalId > skinId
Definition ActionAttackVfxBlock.h:39
One cue scheduled relative to AttackVfx play().
Definition ActionAttackVfxBlock.h:22
double offsetSeconds
Definition ActionAttackVfxBlock.h:23
static Result< ActionSpatialBinding > fromPayload(const Value::Object &payload)
Decode and validate the common spatial fields in an owning payload.
Definition ActionSpatialBlock.cpp:64