载入中...
搜索中...
未找到
ActionNotifyPlayback.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
15
16#include <memory>
17
18namespace eve::action {
19
35public:
37 [[nodiscard]] static Result<std::unique_ptr<ActionNotifyPlayback>> withBuiltins();
38
44
49
51 [[nodiscard]] ActionNotifyRegistry& registry() noexcept { return registry_; }
53 [[nodiscard]] const ActionNotifyRegistry& registry() const noexcept { return registry_; }
54
59 [[nodiscard]] Result<void> apply(const ActionAdvance& advance, ActionNotifyContext context);
60
65 [[nodiscard]] Result<void> interrupt(ActionNotifyContext context);
66
71 [[nodiscard]] Result<void> sample(const std::vector<ActionActiveBlock>& blocks, ActionNotifyContext context) const;
72
74 [[nodiscard]] std::size_t executionCount() const noexcept { return blocks_.executionCount(); }
75
76private:
77 ActionNotifyRegistry registry_;
78 ActionBlockRuntime blocks_{registry_};
79};
80
81} // namespace eve::action
Deterministic notify-state lifecycle routing.
#define EVENGINE_API_PLATFORM
Definition Export.h:107
const eve::script::BindingContractRegistry & registry
const VegetationPresetContext & context
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Owner-thread lifecycle router for timeline notifies and active blocks.
Owner-thread notify playback host.
ActionNotifyRegistry & registry() noexcept
Mutable registry for installing provider handlers.
ActionNotifyPlayback(ActionNotifyPlayback &&)=delete
std::size_t executionCount() const noexcept
Number of execution projections retained for interruption cleanup.
ActionNotifyPlayback & operator=(ActionNotifyPlayback &&)=delete
ActionNotifyPlayback(const ActionNotifyPlayback &)=delete
const ActionNotifyRegistry & registry() const noexcept
Borrowed registry for authoring/descriptor queries.
ActionNotifyPlayback & operator=(const ActionNotifyPlayback &)=delete
Canonical notify descriptor owner and runtime handler router.
Result payload for one deterministic advance call.
Definition Action.h:204
Context linking a routed event to its action execution.