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
72 virtual ~ActorSkeletalAnimationPlayer() /*override*/;
73 // NOLINTEND
74
75public:
76 // member functions
77 // NOLINTBEGIN
78 MCAPI ActorSkeletalAnimationPlayer(
79 ::HashedString const& friendlyName,
80 ::ActorSkeletalAnimationPtr animationData,
81 ::AnimationComponent& animationComponent,
82 ::ExpressionNode const& blendExpression
83 );
84
85 MCAPI void _animateBones(
86 ::RenderParams& renderParams,
87 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap,
88 float blendWeight
89 );
90
91 MCAPI_C void _fireSoundEvents(::RenderParams& renderParams);
92
93 MCAPI_C void _rebuildBoneAnimationPlayers();
94
95 MCAPI void _setDefaultPose(
96 ::RenderParams& renderParams,
97 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap
98 ) const;
99
100 MCAPI bool _updateAnimTime(::RenderParams& renderParams);
101 // NOLINTEND
102
103public:
104 // constructor thunks
105 // NOLINTBEGIN
106 MCAPI void* $ctor(
107 ::HashedString const& friendlyName,
108 ::ActorSkeletalAnimationPtr animationData,
109 ::AnimationComponent& animationComponent,
110 ::ExpressionNode const& blendExpression
111 );
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCAPI void $dtor();
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCAPI void $applyToPose(
124 ::ApplyAnimationContext const& applyContext,
125 ::RenderParams& renderParams,
126 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationMap,
127 float blendWeight
128 );
129
130 MCAPI void $resetAnimation();
131
132 MCFOLD void $buildBoneToPartMapping(::AnimationComponent& animationComponent);
133
134 MCAPI void $bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap);
135
136 MCAPI void $bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap);
137
138 MCFOLD bool $hasAnimationFinished() const;
139
140 MCFOLD ::std::shared_ptr<::ActorAnimationPlayer> $findAnimation(::HashedString const&);
141
142 MCFOLD ::ActorAnimationType $getAnimationType() const;
143
144 MCAPI ::HashedString const& $getRawName() const;
145
146 MCAPI void $visit(::AnimationVisitor&& dispatcher);
147
148
149 // NOLINTEND
150
151public:
152 // vftables
153 // NOLINTBEGIN
154 MCNAPI static void** $vftable();
155 // NOLINTEND
156};
static MCAPI void ** $vftable()
Definition ActorSkeletalAnimationPtr.h:10
Definition AnimationComponent.h:36
Definition ApplyAnimationContext.h:16
Definition BoneOrientation.h:19
Definition ExpressionNode.h:34
Definition HashedString.h:5
Definition RenderParams.h:30
Definition AnimationVisitor.h:16
Definition BoneAnimationPlayer.h:10