载入中...
搜索中...
未找到
ActionBlockRuntime.cpp
浏览该文件的文档.
10Result<void> ActionBlockRuntime::apply(const ActionAdvance& advance, ActionNotifyContext context) {
11 if (context.executionId != advance.id) return Result<void>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument,
38 ActionTimelineEvent event{ActionTimelineEventKind::StateExit, block.trackId, block.itemId, block.type,
48Result<void> ActionBlockRuntime::sample(const std::vector<ActionActiveBlock>& blocks, ActionNotifyContext context) const {
55 return Result<void>::success(Status::success(blocks.empty() ? StatusCode::NoOp : StatusCode::Applied));
Deterministic notify-state lifecycle routing.
std::array< std::uint64_t, kPixelChunkSize *kPixelChunkSize > updated
Definition PixelWorld.cpp:53
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.h:81
Result< void > apply(const ActionAdvance &advance, ActionNotifyContext context)
Deliver boundaries and active updates from one authoritative advance.
Definition ActionBlockRuntime.cpp:10
Result< void > interrupt(ActionNotifyContext context)
Emit paired exits for all blocks retained for one interrupted execution.
Definition ActionBlockRuntime.cpp:31
Result< void > sample(const std::vector< ActionActiveBlock > &blocks, ActionNotifyContext context) const
Evaluate active blocks for editor scrubbing without retaining lifecycle state.
Definition ActionBlockRuntime.cpp:48
Result< void > dispatchSample(const ActionActiveBlock &block, const ActionNotifyContext &context) const
Route one side-effect-free preview sample to its registered handler.
Definition ActionNotifyRegistry.cpp:357
Result< void > dispatchUpdate(const ActionActiveBlock &block, const ActionNotifyContext &context)
Route one authoritative active-state update to its registered handler.
Definition ActionNotifyRegistry.cpp:346
Result< void > advanceHandlers(const ActionNotifyContext &context)
Advance each unique registered handler once in lexical type order.
Definition ActionNotifyRegistry.cpp:369
Result< void > dispatch(const ActionTimelineEvent &event, const ActionNotifyContext &context)
Validate and route an event, failing observably when no handler is present.
Definition ActionNotifyRegistry.cpp:337
Definition AbilityAsset.cpp:9
@ InvalidArgument
@ NoOp
@ Applied
std::vector< ActionTimelineEvent > timelineEvents
Owning timeline boundaries crossed by this advance.
Definition Action.h:187
std::vector< ActionActiveBlock > activeBlocks
Owning samples of timeline states active after this advance.
Definition Action.h:189
Context linking a routed event to its action execution.
Definition ActionNotifyRegistry.h:34
Owning event projection returned by the runtime sampler.
Definition ActionTimeline.h:146