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
37#ifdef LL_PLAT_S
38#else // LL_PLAT_C
39public:
40 // prevent constructor by default
41 ActorSkeletalAnimationPlayer();
42
43#endif
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual void applyToPose(
48 ::ApplyAnimationContext const& applyContext,
49 ::RenderParams& renderParams,
50 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap,
51 float blendWeight
52 ) /*override*/;
53
54 virtual void resetAnimation() /*override*/;
55
56 virtual void buildBoneToPartMapping(::AnimationComponent& animationComponent) /*override*/;
57
58 virtual void bindParticleEffects(
59 ::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap
60 ) /*override*/;
61
62 virtual void
63 bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap) /*override*/;
64
65 virtual bool hasAnimationFinished() const /*override*/;
66
67 virtual ::std::shared_ptr<::ActorAnimationPlayer> findAnimation(::HashedString const&) /*override*/;
68
69 virtual ::ActorAnimationType getAnimationType() const /*override*/;
70
71 virtual ::HashedString const& getRawName() const /*override*/;
72
73 virtual void visit(::AnimationVisitor&& dispatcher) /*override*/;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79#ifdef LL_PLAT_C
80 MCAPI ActorSkeletalAnimationPlayer(
81 ::HashedString const& friendlyName,
82 ::ActorSkeletalAnimationPtr animationData,
83 ::AnimationComponent& animationComponent,
84 ::ExpressionNode const& blendExpression
85 );
86#endif
87
88 MCAPI void _setDefaultPose(
89 ::RenderParams& renderParams,
90 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap
91 ) const;
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97#ifdef LL_PLAT_C
98 MCAPI void* $ctor(
99 ::HashedString const& friendlyName,
100 ::ActorSkeletalAnimationPtr animationData,
101 ::AnimationComponent& animationComponent,
102 ::ExpressionNode const& blendExpression
103 );
104#endif
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCAPI void $applyToPose(
111 ::ApplyAnimationContext const& applyContext,
112 ::RenderParams& renderParams,
113 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap,
114 float blendWeight
115 );
116
117 MCAPI void $resetAnimation();
118
119#ifdef LL_PLAT_S
120 MCFOLD void $buildBoneToPartMapping(::AnimationComponent& animationComponent);
121#else // LL_PLAT_C
122 MCAPI void $buildBoneToPartMapping(::AnimationComponent& animationComponent);
123#endif
124
125 MCAPI void $bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap);
126
127 MCAPI void $bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap);
128
129 MCAPI bool $hasAnimationFinished() const;
130
131 MCFOLD ::std::shared_ptr<::ActorAnimationPlayer> $findAnimation(::HashedString const&);
132
133 MCFOLD ::ActorAnimationType $getAnimationType() const;
134
135 MCAPI ::HashedString const& $getRawName() const;
136
137 MCAPI void $visit(::AnimationVisitor&& dispatcher);
138
139
140 // NOLINTEND
141
142public:
143 // vftables
144 // NOLINTBEGIN
145 MCNAPI static void** $vftable();
146 // NOLINTEND
147};
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