载入中...
搜索中...
未找到
ActionCameraBlock.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
8
9#include <cstdint>
10
11namespace eve::action {
12
18 double positionAmplitude = 0.15;
20 double rotationAmplitude = 1.5;
22 double fovAmplitude = 0.0;
24 Duration duration = Duration::fromNanoseconds(250000000);
26 std::uint32_t seed = 0;
27
29 auto operator<=>(const ActionCameraCueBinding&) const = default;
30
36 [[nodiscard]] static Result<ActionCameraCueBinding> fromPayload(const Value::Object& payload);
37};
38
46public:
47 static constexpr const char* capabilityName = "eve.action.camera-cue-sink";
49 virtual ~IActionCameraCueSink() = default;
50
52 [[nodiscard]] virtual bool supports(const LogicalId& cue) const noexcept = 0;
54 [[nodiscard]] virtual Result<void> trigger(const ActionCameraCueBinding& binding,
55 const ActionNotifyContext& context) = 0;
56};
57
58} // namespace eve::action
Extensible notify descriptors, validation and runtime routing.
Value::Object payload
float duration
#define EVENGINE_API_PLATFORM
Definition Export.h:107
eve::action::ActionVfxBinding binding
std::uint32_t seed
Definition PointSet.cpp:807
const VegetationPresetContext & context
Signed, fixed-resolution simulation duration in nanoseconds.
Definition Time.h:43
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
Optional open target for instantaneous action camera cues.
virtual Result< void > trigger(const ActionCameraCueBinding &binding, const ActionNotifyContext &context)=0
Trigger one already validated camera cue.
virtual bool supports(const LogicalId &cue) const noexcept=0
Whether this sink owns the supplied stable cue identity.
static constexpr const char * capabilityName
virtual ~IActionCameraCueSink()=default
Releases IActionCameraCueSink resources.
Owning validated camera impulse shared by action runtime and camera targets.
LogicalId cue
Stable project-defined cue identity used for target selection.
auto operator<=>(const ActionCameraCueBinding &) const =default
Operator <=>.
Context linking a routed event to its action execution.