LeviLamina
Loading...
Searching...
No Matches
ActorAnimationPlayer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/util/molang/ExpressionNode.h"
8#include "mc/world/actor/SkeletalHierarchyIndex.h"
9#include "mc/world/actor/animation/ActorAnimationType.h"
10
11// auto generated forward declare list
12// clang-format off
15class BoneOrientation;
16class RenderParams;
17struct AnimationVisitor;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 48, ::HashedString const> mFriendlyName;
25 ::ll::TypedStorage<8, 16, ::ExpressionNode const> mBlendExpression;
26 ::ll::TypedStorage<1, 1, bool> mExpanded;
27 ::ll::TypedStorage<1, 1, bool> mAnimationFinished;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~ActorAnimationPlayer();
34
35 virtual void applyToPose(
36 ::ApplyAnimationContext const& applyContext,
37 ::RenderParams& renderParams,
38 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationsMap,
39 float blendWeight
40 ) = 0;
41
42 virtual void resetAnimation() = 0;
43
44#ifdef LL_PLAT_S
45 virtual void buildBoneToPartMapping(::AnimationComponent&);
46#else // LL_PLAT_C
47 virtual void buildBoneToPartMapping(::AnimationComponent& animationComponent);
48#endif
49
50 virtual void
51 bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap);
52
53 virtual void bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap);
54
55 virtual bool hasAnimationFinished() const = 0;
56
57 virtual ::std::shared_ptr<::ActorAnimationPlayer> findAnimation(::HashedString const& friendlyName) = 0;
58
59 virtual ::ActorAnimationType getAnimationType() const = 0;
60
61 virtual ::HashedString const& getRawName() const = 0;
62
63 virtual void visit(::AnimationVisitor&& dispatcher);
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCAPI void $dtor();
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCFOLD void $buildBoneToPartMapping(::AnimationComponent&);
76
77 MCFOLD void
78 $bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap);
79
80 MCFOLD void $bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap);
81
82 MCAPI void $visit(::AnimationVisitor&& dispatcher);
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition ActorAnimationPlayer.h:20
static MCAPI void ** $vftable()
Definition AnimationComponent.h:37
Definition ApplyAnimationContext.h:16
Definition BoneOrientation.h:16
Definition HashedString.h:5
Definition RenderParams.h:30
Definition AnimationVisitor.h:16