载入中...
搜索中...
未找到
ActionAttackVfxBlock.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
7#include "common/Identity.h"
8#include "common/Result.h"
9#include "common/Value.h"
10
11#include <cstdint>
12#include <optional>
13#include <string>
14#include <vector>
15
16namespace eve::action {
17
19enum class ActionAttackVfxShape : std::uint8_t { Instant, State };
20
23 double offsetSeconds = 0.0;
24 std::string cue;
25
27 auto operator<=>(const ActionAttackVfxCue&) const = default;
28};
29
38 std::string uri;
39 std::optional<LogicalId> skinId;
41 double lifetimeSeconds = 0.0;
42 std::vector<ActionAttackVfxCue> cues;
43
45 auto operator<=>(const ActionAttackVfxBinding&) const = default;
46
55 [[nodiscard]] static Result<ActionAttackVfxBinding> fromPayload(const Value::Object& payload,
57};
58
59} // namespace eve::action
Typed spatial payload shared by presentation action blocks.
Value::Object payload
#define EVENGINE_API_PLATFORM
Definition Export.h:107
ShaderImageInput shape
Strong identity values shared by persistence, content and logical-name APIs.
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Human-readable, scoped identifier in the form namespace:name.
Definition Identity.h:411
Move-only operation result carrying either a value or Status.
Definition Result.h:155
std::map< std::string, Value > Object
Definition Value.h:34
ActionAttackVfxShape
Authored AttackVfx block shape used to select lifetime validation.
Owning validated AttackVfx settings shared by runtime and editor preview.
auto operator<=>(const ActionAttackVfxBinding &) const =default
Operator <=>.
std::vector< ActionAttackVfxCue > cues
One cue scheduled relative to AttackVfx play().
auto operator<=>(const ActionAttackVfxCue &) const =default
Operator <=>.
Validated spatial settings decoded from a notify payload.