33#ifndef DVD_ANIMATION_COMPONENT_H_
34#define DVD_ANIMATION_COMPONENT_H_
52 bool playAnimation(
const string& name);
54 bool playAnimation(
U32 pAnimIndex);
56 bool playNextAnimation() noexcept;
58 bool playPreviousAnimation() noexcept;
60 [[nodiscard]]
I32 frameCount(
U32 animationID) const;
62 [[nodiscard]]
U8 boneCount() const;
63 [[nodiscard]]
bool frameTicked() const noexcept;
65 [[nodiscard]] const
vector<
Line>& skeletonLines() const;
70 void resetTimers() noexcept;
72 [[nodiscard]]
AnimEvaluator::FrameIndex frameIndex() const noexcept {
return _frameIndex; }
86 [[nodiscard]]
bool playAnimations() const noexcept {
return _playAnimations && s_globalAnimationState; }
95 D64 _currentTimeStamp = -1.0;
99 D64 _parentTimeStamp = 0.0;
101 bool _playAnimations =
true;
#define END_COMPONENT(Name)
#define BEGIN_COMPONENT(Name, Enum)
static void GlobalAnimationState(const bool state) noexcept
static bool GlobalAnimationState() noexcept
POINTER_RW(SceneAnimator, animator, nullptr)
Pointer to the mesh's animator. Owned by the mesh!
PROPERTY_R(bool, showSkeleton, false)
AnimEvaluator & getCurrentAnimation() const
static bool s_globalAnimationState
PROPERTY_RW(U32, previousAnimationIndex, U32_MAX)
PROPERTY_R(U32, animationIndex, U32_MAX)
Current animation index for the current SGN.
bool playAnimations() const noexcept
PROPERTY_RW(F32, animationSpeed, 1.f)
void playAnimations(const bool state) noexcept
Handle console commands that start with a forward slash.
eastl::vector< Type > vector