LeviLamina
Loading...
Searching...
No Matches
ActorSkeletalAnimationPlayer.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/world/actor/SkeletalHierarchyIndex.h"
8#include "mc/world/actor/animation/ActorAnimationPlayer.h"
9#include "mc/world/actor/animation/ActorAnimationType.h"
10#include "mc/world/actor/animation/ActorSkeletalAnimationPtr.h"
11
12// auto generated forward declare list
13// clang-format off
16class BoneOrientation;
17class ExpressionNode;
18class RenderParams;
19struct AnimationVisitor;
21// clang-format on
22
23class ActorSkeletalAnimationPlayer : public ::ActorAnimationPlayer {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 16, ::ActorSkeletalAnimationPtr> mAnimationData;
28 ::ll::TypedStorage<8, 24, ::std::vector<::BoneAnimationPlayer>> mBoneAnimationPlayers;
29 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<int>>> mBoneToPartMapping;
30 ::ll::TypedStorage<8, 8, ::std::unordered_map<::HashedString, ::HashedString> const*> mActorParticleEffectMap;
31 ::ll::TypedStorage<8, 8, ::std::unordered_map<::HashedString, ::std::string> const*> mActorSoundEffectMap;
32 ::ll::TypedStorage<4, 4, float> mAnimTime;
33 ::ll::TypedStorage<4, 4, float> mLastAnimTime;
34 ::ll::TypedStorage<4, 4, float> mStartDelay;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 ActorSkeletalAnimationPlayer();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual void applyToPose(
45 ::ApplyAnimationContext const& applyContext,
46 ::RenderParams& renderParams,
47 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap,
48 float blendWeight
49 ) /*override*/;
50
51 virtual void resetAnimation() /*override*/;
52
53 virtual void buildBoneToPartMapping(::AnimationComponent& animationComponent) /*override*/;
54
55 virtual void bindParticleEffects(
56 ::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap
57 ) /*override*/;
58
59 virtual void
60 bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap) /*override*/;
61
62 virtual bool hasAnimationFinished() const /*override*/;
63
64 virtual ::std::shared_ptr<::ActorAnimationPlayer> findAnimation(::HashedString const&) /*override*/;
65
66 virtual ::ActorAnimationType getAnimationType() const /*override*/;
67
68 virtual ::HashedString const& getRawName() const /*override*/;
69
70 virtual void visit(::AnimationVisitor&& dispatcher) /*override*/;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI ActorSkeletalAnimationPlayer(
77 ::HashedString const& friendlyName,
78 ::ActorSkeletalAnimationPtr animationData,
79 ::AnimationComponent& animationComponent,
80 ::ExpressionNode const& blendExpression
81 );
82
83 MCAPI void _setDefaultPose(
84 ::RenderParams& renderParams,
85 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap
86 ) const;
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCAPI void* $ctor(
93 ::HashedString const& friendlyName,
94 ::ActorSkeletalAnimationPtr animationData,
95 ::AnimationComponent& animationComponent,
96 ::ExpressionNode const& blendExpression
97 );
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCAPI void $applyToPose(
104 ::ApplyAnimationContext const& applyContext,
105 ::RenderParams& renderParams,
106 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap,
107 float blendWeight
108 );
109
110 MCAPI void $resetAnimation();
111
112#ifdef LL_PLAT_S
113 MCFOLD void $buildBoneToPartMapping(::AnimationComponent& animationComponent);
114#else // LL_PLAT_C
115 MCAPI void $buildBoneToPartMapping(::AnimationComponent& animationComponent);
116#endif
117
118 MCAPI void $bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap);
119
120 MCAPI void $bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap);
121
122 MCAPI bool $hasAnimationFinished() const;
123
124 MCFOLD ::std::shared_ptr<::ActorAnimationPlayer> $findAnimation(::HashedString const&);
125
126 MCFOLD ::ActorAnimationType $getAnimationType() const;
127
128 MCAPI ::HashedString const& $getRawName() const;
129
130 MCAPI void $visit(::AnimationVisitor&& dispatcher);
131
132
133 // NOLINTEND
134
135public:
136 // vftables
137 // NOLINTBEGIN
138 MCNAPI static void** $vftable();
139 // NOLINTEND
140};
Definition ActorAnimationPlayer.h:20
static MCAPI void ** $vftable()
Definition ActorSkeletalAnimationPtr.h:15
Definition AnimationComponent.h:38
Definition ApplyAnimationContext.h:16
Definition BoneOrientation.h:16
Definition ExpressionNode.h:35
Definition HashedString.h:5
Definition RenderParams.h:29
Definition AnimationVisitor.h:16
Definition BoneAnimationPlayer.h:10