LeviLamina
Loading...
Searching...
No Matches
PaperDollRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
7#include "mc/deps/core/string/HashedString.h"
8#include "mc/platform/UUID.h"
9#include "mc/util/MolangVariableMap.h"
10
11// auto generated forward declare list
12// clang-format off
15class IClientInstance;
18class UIControl;
20class UIResolvedDef;
21class UIScene;
23// clang-format on
24
26public:
27 // PaperDollRenderer inner types define
28 enum class RotationStyle : int {
29 None = 0,
30 Automatic = 1,
31 GestureX = 2,
32 CustomY = 3,
33 Lerping = 4,
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<4, 4, ::PaperDollRenderer::RotationStyle> mRotationStyle;
40 ::ll::TypedStorage<4, 4, ::PaperDollRenderer::RotationStyle> mPreviousRotationStyle;
41 ::ll::TypedStorage<1, 1, bool> mUseSelectedSkin;
42 ::ll::TypedStorage<1, 1, bool> mPlayerPaperDoll;
43 ::ll::TypedStorage<1, 1, bool> mUseUUID;
44 ::ll::TypedStorage<1, 1, bool> mRespectSkinGuiScale;
45 ::ll::TypedStorage<4, 4, float> mDeltaTime;
46 ::ll::TypedStorage<4, 4, float> mElapsedTime;
47 ::ll::TypedStorage<4, 4, float> mRotation;
48 ::ll::TypedStorage<4, 4, float> mTargetRotation;
49 ::ll::TypedStorage<4, 4, float> mCameraTiltInDeg;
50 ::ll::TypedStorage<4, 4, float> mRotationSpeedMultiplier;
51 ::ll::TypedStorage<8, 32, ::std::string> mSkinName;
52 ::ll::TypedStorage<8, 16, ::mce::UUID> mCurrentPlayerUUID;
53 ::ll::TypedStorage<8, 16, ::mce::UUID> mPaperDollPackId;
54 ::ll::TypedStorage<4, 4, int> mPaperDollSkinIdx;
55 ::ll::TypedStorage<1, 1, bool> mWaitForSkinInitialize;
56 ::ll::TypedStorage<1, 1, bool> mMarkLocalPlayerAsDirty;
57 ::ll::TypedStorage<8, 8, ::IClientInstance*> mClientInstance;
58 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::HashedString>> mParticleEffectsMap;
59 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mAnimationComponent;
60 ::ll::TypedStorage<8, 56, ::MolangVariableMap> mVariables;
61 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mSkinLastUpdated;
62 // NOLINTEND
63
64public:
65 // virtual functions
66 // NOLINTBEGIN
67 virtual ~PaperDollRenderer() /*override*/;
68
69 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
70
71 virtual void render(
72 ::MinecraftUIRenderContext& renderContext,
73 ::IClientInstance& client,
74 ::UIControl& owner,
75 int pass
76 ) /*override*/;
77
78 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene) /*override*/;
79 // NOLINTEND
80
81public:
82 // member functions
83 // NOLINTBEGIN
84 MCAPI PaperDollRenderer();
85
86 MCAPI explicit PaperDollRenderer(::UIResolvedDef const& def);
87
88 MCAPI void _addAnimationIfNotRegistered(
89 ::std::shared_ptr<::ActorAnimationGroup> actorAnimationGroup,
90 ::HashedString const& friendlyName
91 );
92
93 MCAPI ::AnimationComponent& _getAnimationComponent();
94
95 MCAPI void _render(
96 ::MinecraftUIRenderContext& renderContext,
97 ::IClientInstance& client,
98 ::UIControl& owner,
99 int,
100 ::OffscreenCaptureData const* uiActorCaptureData
101 );
102
103 MCAPI ::HashedString const& getActorType(::UIControl& owner) const;
104
105 MCAPI void offscreenCapture(
106 ::MinecraftUIRenderContext& renderContext,
107 ::IClientInstance& client,
108 ::UIControl& owner,
109 int pass,
110 ::OffscreenCaptureData const& uiActorCaptureData,
111 ::SerializedSkinRef const& skin,
112 float yRotation
113 );
114 // NOLINTEND
115
116public:
117 // constructor thunks
118 // NOLINTBEGIN
119 MCAPI void* $ctor();
120
121 MCAPI void* $ctor(::UIResolvedDef const& def);
122 // NOLINTEND
123
124public:
125 // destructor thunk
126 // NOLINTBEGIN
127 MCAPI void $dtor();
128 // NOLINTEND
129
130public:
131 // virtual function thunks
132 // NOLINTBEGIN
133 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
134
135 MCAPI void
136 $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int pass);
137
138 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene);
139 // NOLINTEND
140
141public:
142 // vftables
143 // NOLINTBEGIN
144 MCNAPI static void** $vftable();
145 // NOLINTEND
146};
Definition ActorAnimationGroup.h:26
Definition AnimationComponent.h:36
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition PaperDollRenderer.h:5
static MCAPI void ** $vftable()
Definition SerializedSkinRef.h:23
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIResolvedDef.h:5
Definition UIScene.h:5
Definition OffscreenCaptureData.h:5