载入中...
搜索中...
未找到
ActionGameplayEventBlock.cpp
浏览该文件的文档.
13Result<ActionGameplayEventBinding> ActionGameplayEventBinding::fromPayload(const Value::Object& payload) {
19 Diagnostic::error(DiagnosticCode::InvalidArgument, "gameplay event tag must be canonical", "tag"));
24 if (!target || *target < 0 || static_cast<std::uint64_t>(*target) > std::numeric_limits<std::uint32_t>::max())
Typed instantaneous gameplay-event action contract.
Stable hierarchical gameplay-tag definitions and registry.
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
Definition AbilityAsset.cpp:9
bool isValidGameplayTagName(std::string_view name) noexcept
Returns whether a name is a canonical dot-separated gameplay tag.
Definition GameplayTag.cpp:29
@ InvalidArgument
Owning validated event request authored on an action timeline.
Definition ActionGameplayEventBlock.h:15
std::optional< std::size_t > targetIndex
Optional target index; absence routes the event to the source subject.
Definition ActionGameplayEventBlock.h:19
Value data
Owning schema-neutral domain payload retained by the target event adapter.
Definition ActionGameplayEventBlock.h:21
static Result< ActionGameplayEventBinding > fromPayload(const Value::Object &payload)
Decode and validate an event payload without emitting it.
Definition ActionGameplayEventBlock.cpp:13