载入中...
搜索中...
未找到
ActionNotifyRegistry.h
浏览该文件的文档.
78 [[nodiscard]] virtual Result<void> handle(const ActionTimelineEvent& event, const ActionNotifyContext& context) = 0;
86 [[nodiscard]] virtual Result<void> update(const ActionActiveBlock&, const ActionNotifyContext&) {
96 [[nodiscard]] virtual Result<void> sample(const ActionActiveBlock&, const ActionNotifyContext&) const {
149 [[nodiscard]] Result<void> registerHandler(std::string_view type, std::shared_ptr<IActionNotifyHandler> handler);
165 [[nodiscard]] Result<void> dispatch(const ActionTimelineEvent& event, const ActionNotifyContext& context);
171 [[nodiscard]] Result<void> dispatchUpdate(const ActionActiveBlock& block, const ActionNotifyContext& context);
Renderer- and ruleset-neutral gameplay action pipeline.
Vocabulary aliases for nullable and checked borrowed references.
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.h:81
Canonical notify descriptor owner and runtime handler router.
Definition ActionNotifyRegistry.h:138
Consumer-owned handler for one registered notify type.
Definition ActionNotifyRegistry.h:68
virtual Result< void > handle(const ActionTimelineEvent &event, const ActionNotifyContext &context)=0
Consume one already validated event.
virtual ~IActionNotifyHandler()=default
Releases IActionNotifyHandler resources.
virtual Result< void > update(const ActionActiveBlock &, const ActionNotifyContext &)
Update one active state block after its boundary events were delivered.
Definition ActionNotifyRegistry.h:86
virtual Result< void > sample(const ActionActiveBlock &, const ActionNotifyContext &) const
Evaluate one preview sample without creating persistent side effects.
Definition ActionNotifyRegistry.h:96
virtual Result< void > advance(const ActionNotifyContext &)
Advance handler-owned transient instances after events and state updates.
Definition ActionNotifyRegistry.h:105
Optional module provider that installs handlers into a new registry.
Definition ActionNotifyRegistry.h:117
virtual ~IActionNotifyProvider()=default
Releases IActionNotifyProvider resources.
virtual Result< void > install(ActionNotifyRegistry ®istry)=0
Install provider-owned handler instances for known descriptors.
static constexpr const char * capabilityName
Definition ActionNotifyRegistry.h:119
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
Definition AbilityAsset.cpp:9
ActionNotifyShape
Declares whether a notify is instantaneous or an enter/exit state.
Definition ActionNotifyRegistry.h:22
@ NoOp
std::optional< std::reference_wrapper< T > > OptionalRef
Optional borrowed reference; it does not extend T's lifetime.
Definition BorrowedRef.h:24
Owning per-step sample of one currently active timeline state.
Definition ActionTimeline.h:159
Context linking a routed event to its action execution.
Definition ActionNotifyRegistry.h:34
double playbackRate
Finite positive host playback multiplier used by synchronized presentation blocks.
Definition ActionNotifyRegistry.h:53
bool scrubbing
Whether preview time was positioned discontinuously.
Definition ActionNotifyRegistry.h:57
std::optional< ecs::EntityHandle > source
Optional source entity; resolved by consumers at call time.
Definition ActionNotifyRegistry.h:38
bool interrupted
Whether state exits are being synthesized because the execution was interrupted.
Definition ActionNotifyRegistry.h:59
OptionalRef< const IAttachmentPointSource > sourceAttachment
Optional borrowed animated attachment source corresponding to source.
Definition ActionNotifyRegistry.h:42
Duration time
Authoritative timeline time associated with this dispatch.
Definition ActionNotifyRegistry.h:49
bool preview
Whether the callback is an editor/runtime preview projection.
Definition ActionNotifyRegistry.h:55
std::vector< OptionalRef< const IAttachmentPointSource > > targetAttachments
Borrowed animated attachment sources indexed like targets; empty entries are valid.
Definition ActionNotifyRegistry.h:47
std::vector< ecs::EntityHandle > targets
Owning target handle list for this synchronous dispatch.
Definition ActionNotifyRegistry.h:40
SimulationTick tick
Deterministic simulation tick associated with this dispatch, when available.
Definition ActionNotifyRegistry.h:51
ActionExecutionId executionId
Execution whose lifecycle is being routed.
Definition ActionNotifyRegistry.h:36
Owning editor/runtime contract for one notify type.
Definition ActionNotifyRegistry.h:25
std::string category
Definition ActionNotifyRegistry.h:28
std::string displayName
Definition ActionNotifyRegistry.h:27
std::vector< std::string > requiredPayloadFields
Definition ActionNotifyRegistry.h:30
ActionNotifyShape shape
Definition ActionNotifyRegistry.h:29
Owning event projection returned by the runtime sampler.
Definition ActionTimeline.h:146