载入中...
搜索中...
未找到
ActionAttackVfxBlock.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
11#include "common/Identity.h"
12#include "common/Result.h"
13#include "common/Value.h"
14
15#include <cstdint>
16#include <optional>
17#include <string>
18#include <vector>
19
20namespace eve::action {
21
23enum class ActionAttackVfxShape : std::uint8_t { Instant, State };
24
27 double offsetSeconds = 0.0;
28 std::string cue;
29
31 auto operator<=>(const ActionAttackVfxCue&) const = default;
32};
33
42 std::string uri;
43 std::optional<LogicalId> skinId;
45 double lifetimeSeconds = 0.0;
46 std::vector<ActionAttackVfxCue> cues;
47
49 auto operator<=>(const ActionAttackVfxBinding&) const = default;
50
59 [[nodiscard]] static Result<ActionAttackVfxBinding> fromPayload(const Value::Object& payload,
61};
62
63} // 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:414
Move-only operation result carrying either a value or Status.
Definition Result.h:176
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.