载入中...
搜索中...
未找到
MontagePlayer.h
浏览该文件的文档.
123 [[nodiscard]] Result<void> prepare(action::ActionTimeline timeline, std::vector<MontageClipAsset>&& clips);
128 [[nodiscard]] Result<void> prepare(action::ActionTimeline timeline, IMontageClipProvider& provider);
157 [[nodiscard]] Result<MontageAdvance> present(const action::ActionAdvance& advance, SimulationTick tick);
165 [[nodiscard]] Result<MontageAdvance> present(action::ActionAdvance&& advance, SimulationTick tick);
170 [[nodiscard]] Result<MontageAdvance> jumpToTime(action::ActionExecutionId executionId, Duration target,
173 [[nodiscard]] Result<MontageAdvance> jumpToSection(action::ActionExecutionId executionId, std::size_t sectionIndex,
176 [[nodiscard]] Result<MontageAdvance> evaluateSectionProgress(action::ActionExecutionId executionId,
197 void setRootMotionReceiver(IMontageRootMotionReceiver& receiver) noexcept { receiver_ = &receiver; }
207 [[nodiscard]] MontageRootMotionMask getRootMotionMask() const noexcept { return rootMotionMask_; }
215 [[nodiscard]] RootMotionPolicy getRootMotionPolicy() const noexcept { return rootMotionPolicy_; }
242 [[nodiscard]] bool footIkEnabled() const noexcept { return timeline_ && timeline_->montage.footIk; }
259 [[nodiscard]] std::vector<action::ActionTimelineEvent> realignStateEvents(Duration target) const;
Renderer- and ruleset-neutral gameplay action pipeline.
Move-only, checked operation results for the common layer.
Common time values and an injectable deterministic simulation clock.
Single-clip (or cross-fading) 3D animation player. Script type: AnimPlayer.
Definition AnimPlayer.h:33
Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose.
Definition AnimPose.h:17
3D bone hierarchy + bind-pose local TRS for skeletal animation. Independent of ik::Skeleton3D (FABRIK...
Definition AnimSkeleton.h:16
Synchronous ownership-transfer port used to resolve montage clip URIs.
Definition MontagePlayer.h:41
virtual Result< std::unique_ptr< AnimClip > > load(std::string_view uri, const AnimSkeleton &skeleton)=0
Resolve one URI into a clip compatible with the borrowed skeleton.
virtual ~IMontageClipProvider()=default
Releases IMontageClipProvider resources.
Optional receiver for filtered per-step root motion.
Definition MontagePlayer.h:77
virtual void applyMontageRootMotion(const TransformTRS &delta) noexcept=0
Consume one borrowed filtered root-motion delta.
virtual ~IMontageRootMotionReceiver()=default
Releases IMontageRootMotionReceiver resources.
Presentation-only montage player over an ActionTimeline.
Definition MontagePlayer.h:108
RootMotionPolicy getRootMotionPolicy() const noexcept
Copy of the active root-motion policy.
Definition MontagePlayer.h:215
bool footIkEnabled() const noexcept
Whether the host should run its terrain-specific foot-IK provider after this pose.
Definition MontagePlayer.h:242
bool isPlaying() const noexcept
Whether the prepared montage is actively playing.
Definition MontagePlayer.h:228
std::size_t animationLayer() const noexcept
Authored output layer requested by the prepared montage, or zero before preparation.
Definition MontagePlayer.h:238
Duration time() const noexcept
Current derived montage presentation time.
Definition MontagePlayer.h:226
MontagePlayer & operator=(const MontagePlayer &)=delete
MontageRootMotionMask getRootMotionMask() const noexcept
Compatibility projection of the active policy lock bits.
Definition MontagePlayer.h:207
void clearRootMotionReceiver() noexcept
Clear the borrowed root-motion receiver before its owner is destroyed.
Definition MontagePlayer.h:199
void setGapPolicy(MontageGapPolicy policy) noexcept
Select the explicit pose policy used in gaps between animation sections.
Definition MontagePlayer.h:222
bool isFinished() const noexcept
Whether playback completed naturally while retaining its final weighted pose.
Definition MontagePlayer.h:232
bool isBlendingOut() const noexcept
Whether playback is in externally requested blend-out.
Definition MontagePlayer.h:230
MontagePlayer(const MontagePlayer &)=delete
Immutable lookup topology built before a montage is published.
Definition MontagePlayer.cpp:24
Definition Animation.cpp:58
MontageGapPolicy
Pose behavior while the authoritative action cursor is between authored sections.
Definition MontagePlayer.h:64
@ HoldPose
Keep the last evaluated pose until another section starts.
Definition Container.h:602
Owning per-step sample of one currently active timeline state.
Definition ActionTimeline.h:173
Objective animation segment placed on the montage presentation lane.
Definition ActionTimeline.h:61
Montage-wide presentation settings persisted with the action timeline.
Definition ActionTimeline.h:39
Canonical action timeline asset shared by runtime and editor.
Definition ActionTimeline.h:192
Owning observation returned by one montage presentation step.
Definition MontagePlayer.h:89
std::vector< action::ActionTimelineEvent > events
Definition MontagePlayer.h:93
std::optional< LogicalId > sectionId
Definition MontagePlayer.h:92
std::vector< MontageActiveBlock > activeBlocks
Definition MontagePlayer.h:94
Owning clip supplied while transactionally preparing a montage.
Definition MontagePlayer.h:29
Compatibility-only axis enable mask for montage root motion.
Definition MontagePlayer.h:56
Policy applied after raw root-bone delta extraction. @ownership Value type; owned by AnimPlayer or th...
Definition RootMotionPolicy.h:62
Local TRS used by skeletal animation (quaternion xyzw).
Definition AnimMath.h:9