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
14class BoneOrientation;
15class RenderParams;
16struct AnimationVisitor;
17// clang-format on
18
19class ActorAnimationPlayer {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 48, ::HashedString const> mFriendlyName;
24 ::ll::TypedStorage<8, 16, ::ExpressionNode const> mBlendExpression;
25 ::ll::TypedStorage<1, 1, bool> mExpanded;
26 ::ll::TypedStorage<1, 1, bool> mAnimationFinished;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ActorAnimationPlayer();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~ActorAnimationPlayer();
37
38 virtual void applyToPose(
40 ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>&,
41 float
42 ) = 0;
43
44 virtual void resetAnimation() = 0;
45
46 virtual void buildBoneToPartMapping(::AnimationComponent&);
47
48 virtual void bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const&);
49
50 virtual void bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const&);
51
52 virtual bool hasAnimationFinished() const = 0;
53
54 virtual ::std::shared_ptr<::ActorAnimationPlayer> findAnimation(::HashedString const&) = 0;
55
56 virtual ::ActorAnimationType getAnimationType() const = 0;
57
58 virtual ::HashedString const& getRawName() const = 0;
59
60 virtual void visit(::AnimationVisitor&& dispatcher);
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI ActorAnimationPlayer(::HashedString const& friendlyName, ::ExpressionNode const& blendExpression);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(::HashedString const& friendlyName, ::ExpressionNode const& blendExpression);
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCAPI void $dtor();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD void $buildBoneToPartMapping(::AnimationComponent&);
85
86 MCFOLD void $bindParticleEffects(::std::unordered_map<::HashedString, ::HashedString> const&);
87
88 MCFOLD void $bindSoundEffects(::std::unordered_map<::HashedString, ::std::string> const&);
89
90 MCAPI void $visit(::AnimationVisitor&& dispatcher);
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
static MCAPI void ** $vftable()
Definition AnimationComponent.h:36
Definition BoneOrientation.h:19
Definition ExpressionNode.h:33
Definition HashedString.h:5
Definition RenderParams.h:30
Definition AnimationVisitor.h:16