载入中...
搜索中...
未找到
ActionCameraBlock.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
12
13#include <cstdint>
14
15namespace eve::action {
16
22 double positionAmplitude = 0.15;
24 double rotationAmplitude = 1.5;
26 double fovAmplitude = 0.0;
28 Duration duration = Duration::fromNanoseconds(250000000);
30 std::uint32_t seed = 0;
31
33 auto operator<=>(const ActionCameraCueBinding&) const = default;
34
40 [[nodiscard]] static Result<ActionCameraCueBinding> fromPayload(const Value::Object& payload);
41};
42
50public:
51 static constexpr const char* capabilityName = "eve.action.camera-cue-sink";
53 virtual ~IActionCameraCueSink() = default;
54
56 [[nodiscard]] virtual bool supports(const LogicalId& cue) const noexcept = 0;
58 [[nodiscard]] virtual Result<void> trigger(const ActionCameraCueBinding& binding,
59 const ActionNotifyContext& context) = 0;
60};
61
62} // 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
uint32_t seed
Definition TreeMesh.cpp:276
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: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
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.