LeviLamina
Loading...
Searching...
No Matches
ActorAnimationControllerPlayer.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/ActorAnimationControllerPtr.h"
9#include "mc/world/actor/animation/ActorAnimationPlayer.h"
10#include "mc/world/actor/animation/ActorAnimationType.h"
11
12// auto generated forward declare list
13// clang-format off
17class BoneOrientation;
18class ExpressionNode;
19class RenderParams;
20struct AnimationVisitor;
21// clang-format on
22
23class ActorAnimationControllerPlayer : public ::ActorAnimationPlayer {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 16, ::ActorAnimationControllerPtr> mAnimationControllerPtr;
28 ::ll::TypedStorage<4, 4, int> mCurrStateIndex;
29 ::ll::TypedStorage<4, 4, int> mLastStateIndex;
30 ::ll::TypedStorage<4, 4, int> mNextStateIndex;
31 ::ll::TypedStorage<4, 4, int> mBlendTransitionStateIndex;
32 ::ll::TypedStorage<4, 4, float> mBlendTransitionTime;
33 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ActorAnimationControllerStatePlayer>>>
34 mAnimationControllerStatePlayers;
35 ::ll::TypedStorage<8, 8, ::std::unordered_map<::HashedString, ::HashedString> const*> mActorParticleEffectMap;
36 ::ll::TypedStorage<8, 8, ::std::unordered_map<::HashedString, ::std::string> const*> mActorSoundEffectMap;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 ActorAnimationControllerPlayer();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual void applyToPose(
47 ::ApplyAnimationContext const& applyContext,
48 ::RenderParams& renderParams,
49 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationsMap,
50 float blendWeight
51 ) /*override*/;
52
53 virtual void resetAnimation() /*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& friendlyName) /*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 ActorAnimationControllerPlayer(
77 ::HashedString const& friendlyName,
78 ::ActorAnimationControllerPtr const& animationControllerPtr,
79 ::AnimationComponent& animationComponent,
80 ::ExpressionNode const& blendExpression,
81 ::std::set<::HashedString, ::std::hash<::HashedString>>& animationControllerNameStack
82 );
83
84 MCAPI void blendViaShortestPath(
85 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationsMap,
86 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>> const&
87 blendOutBoneOrientationsMap,
88 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>> const&
89 blendInBoneOrientationsMap,
90 float blendInWeight,
91 float
92 );
93
94#ifdef LL_PLAT_C
95 MCAPI ::std::shared_ptr<::ActorAnimationControllerStatePlayer>
96 getStatePlayer(::HashedString const& stateName, ::AnimationComponent& animationComponent, bool createIfMissing);
97#endif
98 // NOLINTEND
99
100public:
101 // constructor thunks
102 // NOLINTBEGIN
103 MCAPI void* $ctor(
104 ::HashedString const& friendlyName,
105 ::ActorAnimationControllerPtr const& animationControllerPtr,
106 ::AnimationComponent& animationComponent,
107 ::ExpressionNode const& blendExpression,
108 ::std::set<::HashedString, ::std::hash<::HashedString>>& animationControllerNameStack
109 );
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCAPI void $applyToPose(
116 ::ApplyAnimationContext const& applyContext,
117 ::RenderParams& renderParams,
118 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>& destBoneOrientationsMap,
119 float blendWeight
120 );
121
122 MCAPI void $resetAnimation();
123
124 MCAPI void $bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const& actorParticleEffectMap);
125
126 MCAPI void $bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const& actorSoundEffectMap);
127
128 MCAPI bool $hasAnimationFinished() const;
129
130 MCAPI ::std::shared_ptr<::ActorAnimationPlayer> $findAnimation(::HashedString const& friendlyName);
131
132 MCFOLD ::ActorAnimationType $getAnimationType() const;
133
134 MCAPI ::HashedString const& $getRawName() const;
135
136 MCAPI void $visit(::AnimationVisitor&& dispatcher);
137
138
139 // NOLINTEND
140
141public:
142 // vftables
143 // NOLINTBEGIN
144 MCNAPI static void** $vftable();
145 // NOLINTEND
146};
static MCAPI void ** $vftable()
Definition ActorAnimationControllerPtr.h:12
Definition ActorAnimationControllerStatePlayer.h:24
Definition ActorAnimationPlayer.h:20
Definition AnimationComponent.h:37
Definition ApplyAnimationContext.h:16
Definition BoneOrientation.h:16
Definition ExpressionNode.h:36
Definition HashedString.h:5
Definition RenderParams.h:30
Definition AnimationVisitor.h:16