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
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<4, 4, ::PaperDollRenderer::RotationStyle> mRotationStyle;
34 ::ll::TypedStorage<4, 4, ::PaperDollRenderer::RotationStyle> mPreviousRotationStyle;
35 ::ll::TypedStorage<1, 1, bool> mUseSelectedSkin;
36 ::ll::TypedStorage<1, 1, bool> mPlayerPaperDoll;
37 ::ll::TypedStorage<1, 1, bool> mUseUUID;
38 ::ll::TypedStorage<1, 1, bool> mRespectSkinGuiScale;
39 ::ll::TypedStorage<4, 4, float> mDeltaTime;
40 ::ll::TypedStorage<4, 4, float> mElapsedTime;
41 ::ll::TypedStorage<4, 4, float> mRotation;
42 ::ll::TypedStorage<4, 4, float> mTargetRotation;
43 ::ll::TypedStorage<4, 4, float> mCameraTiltInDeg;
44 ::ll::TypedStorage<4, 4, float> mRotationSpeedMultiplier;
45 ::ll::TypedStorage<8, 32, ::std::string> mSkinName;
46 ::ll::TypedStorage<8, 16, ::mce::UUID> mCurrentPlayerUUID;
47 ::ll::TypedStorage<8, 16, ::mce::UUID> mPaperDollPackId;
48 ::ll::TypedStorage<4, 4, int> mPaperDollSkinIdx;
49 ::ll::TypedStorage<1, 1, bool> mWaitForSkinInitialize;
50 ::ll::TypedStorage<1, 1, bool> mMarkLocalPlayerAsDirty;
51 ::ll::TypedStorage<8, 8, ::IClientInstance*> mClientInstance;
52 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::HashedString>> mParticleEffectsMap;
53 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mAnimationComponent;
54 ::ll::TypedStorage<8, 56, ::MolangVariableMap> mVariables;
55 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mSkinLastUpdated;
56 // NOLINTEND
57
58public:
59 // virtual functions
60 // NOLINTBEGIN
61 virtual ~PaperDollRenderer() /*override*/;
62
63 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
64
65 virtual void render(
66 ::MinecraftUIRenderContext& renderContext,
67 ::IClientInstance& client,
68 ::UIControl& owner,
69 int pass
70 ) /*override*/;
71
72 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene) /*override*/;
73 // NOLINTEND
74
75public:
76 // member functions
77 // NOLINTBEGIN
78 MCAPI PaperDollRenderer();
79
80 MCAPI explicit PaperDollRenderer(::UIResolvedDef const& def);
81
82 MCAPI void _addAnimationIfNotRegistered(
83 ::std::shared_ptr<::ActorAnimationGroup> actorAnimationGroup,
84 ::HashedString const& friendlyName
85 );
86
87 MCAPI ::AnimationComponent& _getAnimationComponent();
88
89 MCAPI void _render(
90 ::MinecraftUIRenderContext& renderContext,
91 ::IClientInstance& client,
92 ::UIControl& owner,
93 int,
94 ::OffscreenCaptureData const* uiActorCaptureData
95 );
96
97 MCAPI ::HashedString const& getActorType(::UIControl& owner) const;
98
99 MCAPI void offscreenCapture(
100 ::MinecraftUIRenderContext& renderContext,
101 ::IClientInstance& client,
102 ::UIControl& owner,
103 int pass,
104 ::OffscreenCaptureData const& uiActorCaptureData,
105 ::SerializedSkinRef const& skin,
106 float yRotation
107 );
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCAPI void* $ctor();
114
115 MCAPI void* $ctor(::UIResolvedDef const& def);
116 // NOLINTEND
117
118public:
119 // destructor thunk
120 // NOLINTBEGIN
121 MCAPI void $dtor();
122 // NOLINTEND
123
124public:
125 // virtual function thunks
126 // NOLINTBEGIN
127 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
128
129 MCAPI void
130 $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int pass);
131
132 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene);
133 // NOLINTEND
134
135public:
136 // vftables
137 // NOLINTBEGIN
138 MCNAPI static void** $vftable();
139 // NOLINTEND
140};
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