载入中...
搜索中...
未找到
ActionVfxBlock.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
8
9#include <cstdint>
10#include <string>
11
12namespace eve::action {
13
15enum class ActionVfxShape : std::uint8_t { Instant, State };
16
19
22 std::string uri;
24 ActionVfxStopBehavior stopBehavior = ActionVfxStopBehavior::StopEmitting;
25 bool playbackRateSynced = true;
26 double clipStartTime = 0.0;
27 double clipEndTime = 0.5;
28 double lifetimeSeconds = 0.0;
29
31 auto operator<=>(const ActionVfxBinding&) const = default;
32
41 [[nodiscard]] static Result<ActionVfxBinding> fromPayload(const Value::Object& payload,
43};
44
45} // namespace eve::action
Typed spatial payload shared by presentation action blocks.
Value::Object payload
#define EVENGINE_API_PLATFORM
Definition Export.h:107
ShaderImageInput shape
Move-only operation result carrying either a value or Status.
Definition Result.h:155
std::map< std::string, Value > Object
Definition Value.h:34
ActionVfxShape
Authored VFX block shape used to select lifetime validation.
ActionVfxStopBehavior
Behavior applied when a VFX block leaves its active interval.
Validated spatial settings decoded from a notify payload.
Owning validated VFX settings shared by runtime and editor preview.
ActionSpatialBinding spatial
auto operator<=>(const ActionVfxBinding &) const =default
Operator <=>.