LeviLamina
Loading...
Searching...
No Matches
SerializedSkinRef.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7#include "mc/util/ThreadOwner.h"
8#include "mc/world/actor/player/TrustedSkinFlag.h"
9#include "mc/world/actor/player/persona/AnimatedTextureType.h"
10#include "mc/world/actor/player/persona/ArmSize.h"
11#include "mc/world/actor/player/persona/PieceType.h"
12
13// auto generated forward declare list
14// clang-format off
16class BinaryStream;
18class LevelData;
24class TintMapColor;
25struct SkinImage;
26namespace Json { class Value; }
27namespace mce { class Color; }
28namespace mce { struct Image; }
29// clang-format on
30
31class SerializedSkinRef {
32public:
33 // SerializedSkinRef inner types define
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Application::ThreadOwner<::SerializedSkinImpl, 0>>>
40 mSkinImpl;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI SerializedSkinRef();
47
48 MCAPI SerializedSkinRef(::SerializedSkinRef&& rhs);
49
50 MCAPI SerializedSkinRef(::SerializedSkinRef const& rhs);
51
52 MCAPI SerializedSkinRef(::std::string const& playFabId, ::ConnectionRequest const& connectionRequest);
53
54 MCAPI SerializedSkinRef(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
55
56 MCAPI SerializedSkinRef(
57 ::std::string const& name,
58 ::std::string const& playFabId,
59 ::std::string const& resourcePatch,
60 ::mce::Image const& skinImage,
61 ushort const& skinImageWidth,
62 ushort const& skinImageHeight,
63 ::mce::Image const& capeImage,
64 ushort const& capeImageWidth,
65 ushort const& capeImageHeight,
66 ::Json::Value&& geometryData,
67 ::MinEngineVersion const& geometryDataMinEngineVersion,
68 ::std::string const& animationData,
69 ::std::string const& capeId,
70 bool isTrustedSkin,
71 bool isPremium,
72 bool isPersona,
73 bool isPersonaCapeOnClassicSkin,
74 bool isPrimaryUser,
75 bool overridesPlayerAppearance
76 );
77
78#ifdef LL_PLAT_C
79 MCAPI int64 estimateSizeInBytes() const;
80#endif
81
82 MCAPI ::std::vector<::AnimatedImageData> const& getAnimatedImageData() const;
83
84 MCAPI ::std::string const& getAnimationData() const;
85
86#ifdef LL_PLAT_C
87 MCAPI float getAnimationFrames(::persona::AnimatedTextureType animationType) const;
88#endif
89
90 MCAPI ::persona::ArmSize::Type const& getArmSize() const;
91
92#ifdef LL_PLAT_C
93 MCAPI ::std::string getArmSizeAsString() const;
94#endif
95
96 MCAPI ::std::string const& getCapeId() const;
97
98 MCFOLD ::mce::Image const& getCapeImageData() const;
99
100#ifdef LL_PLAT_C
101 MCFOLD ::mce::Image& getCapeImageData();
102#endif
103
104 MCFOLD ::SkinImage const& getCapeImageDataCereal() const;
105
106#ifdef LL_PLAT_C
107 MCFOLD ::std::string const& getDefaultGeometryName() const;
108#endif
109
110 MCFOLD ::std::string const& getFullId() const;
111
112 MCAPI ::Json::Value const& getGeometryData() const;
113
114 MCAPI ::MinEngineVersion const& getGeometryDataMinEngineVersion() const;
115
116#ifdef LL_PLAT_C
117 MCAPI ::Json::Value& getGeometryDataMutable() const;
118#endif
119
120 MCAPI ::std::string getGeometryDataStr() const;
121
122 MCFOLD ::std::string const& getId() const;
123
124#ifdef LL_PLAT_C
125 MCFOLD ::mce::Image const& getImageData() const;
126
127 MCFOLD ::mce::Image& getImageData();
128#endif
129
130 MCFOLD ::SkinImage const& getImageDataCereal() const;
131
132#ifdef LL_PLAT_C
133 MCFOLD ::mce::Image& getImageDataMutable();
134#endif
135
136 MCAPI bool getIsPersona() const;
137
138 MCAPI bool getIsPersonaCapeOnClassicSkin() const;
139
140 MCAPI bool getIsPremium() const;
141
142 MCAPI ::TrustedSkinFlag const& getIsTrustedSkinFlag() const;
143
144 MCFOLD ::std::string const& getName() const;
145
146 MCAPI ::std::vector<::SerializedPersonaPieceHandle> const& getPersonaPieces() const;
147
148 MCAPI ::std::unordered_map<::persona::PieceType, ::TintMapColor> const& getPieceTintColors() const;
149
150 MCFOLD ::std::string const& getPlayFabId() const;
151
152 MCFOLD ::std::string const& getResourcePatch() const;
153
154 MCAPI ::mce::Color const& getSkinColor() const;
155
156 MCAPI bool isPrimaryUser() const;
157
158 MCAPI bool isTrustedSkin() const;
159
160 MCAPI bool isValid() const;
161
162 MCFOLD ::SerializedSkinRef& operator=(::SerializedSkinRef&& rhs);
163
164 MCFOLD ::SerializedSkinRef& operator=(::SerializedSkinRef const& rhs);
165
166 MCAPI bool operator==(::SerializedSkinRef const& rhs) const;
167
168 MCAPI bool overridesPlayerAppearance() const;
169
170 MCAPI ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream);
171
172#ifdef LL_PLAT_C
173 MCAPI void releaseThread();
174#endif
175
176 MCAPI void setAnimatedImageData(::std::vector<::AnimatedImageData> const& animatedImages);
177
178 MCAPI void setAnimationData(::std::string const& animationData);
179
180 MCAPI void setArmSize(::persona::ArmSize::Type const& armSizeType);
181
182 MCAPI void setCapeId(::std::string const& capeId);
183
184#ifdef LL_PLAT_C
185 MCAPI void setCapeImageData(::mce::Image const* image);
186#endif
187
188 MCAPI void setCapeImageDataCereal(::SkinImage const& image);
189
190 MCAPI void setFullId(::std::string const& fullId);
191
192#ifdef LL_PLAT_C
193 MCAPI void setGeometryData(::Json::Value data, ::MinEngineVersion minEngineVersion);
194#endif
195
196 MCAPI void setGeometryDataCereal(::Json::Value data);
197
198 MCAPI void setGeometryDataMinEngineVersion(::MinEngineVersion minEngineVersion);
199
200 MCAPI void setId(::std::string const& id);
201
202#ifdef LL_PLAT_C
203 MCAPI void setImageData(::mce::Image const* image);
204#endif
205
206 MCAPI void setImageDataCereal(::SkinImage const& image);
207
208 MCAPI void setIsPersona(bool isPersona);
209
210 MCAPI void setIsPersonaCapeOnClassicSkin(bool isPersonaCapeOnClassicSkin);
211
212 MCAPI void setIsPremium(bool isPremium);
213
214 MCAPI void setIsPrimaryUser(bool isPrimaryUser);
215
216 MCAPI void setIsTrustedSkin(bool isTrustedSkin);
217
218 MCAPI void setIsTrustedSkinFlag(::TrustedSkinFlag const& isTrustedSkinFlag);
219
220 MCAPI void setOverridesPlayerAppearance(bool overridesPlayerAppearance);
221
222 MCAPI void setPersonaAppearanceData(
223 ::persona::ArmSize::Type const& armSizeType,
224 ::mce::Color const& skinColor,
225 ::std::vector<::SerializedPersonaPieceHandle> personaPieces,
226 ::std::unordered_map<::persona::PieceType, ::TintMapColor> const& pieceTintColors
227 );
228
229 MCAPI void setPersonaPieces(::std::vector<::SerializedPersonaPieceHandle> const& personaPieces);
230
231 MCAPI void setPieceTintColors(::std::unordered_map<::persona::PieceType, ::TintMapColor> const& pieceTintColors);
232
233 MCAPI void setPlayFabId(::std::string const& playFabId);
234
235 MCAPI void setResourcePatch(::std::string const& resourcePatch);
236
237 MCAPI void setSkinColor(::mce::Color const& color);
238
239#ifdef LL_PLAT_C
240 MCAPI void updateGeometryName();
241
242 MCAPI bool useBlinkingAnimation() const;
243#endif
244
245 MCFOLD void verifyTrustEstablished(::std::string_view functionName) const;
246
247 MCAPI void write(::BinaryStream& stream) const;
248
249 MCAPI ~SerializedSkinRef();
250 // NOLINTEND
251
252public:
253 // static functions
254 // NOLINTBEGIN
255 MCAPI static ::SerializedSkinRef createTrustedDefaultSerializedSkin();
256
257 MCAPI static bool isSkinDisabled(::SerializedSkinRef const& skin, ::LevelData const& levelData);
258 // NOLINTEND
259
260public:
261 // constructor thunks
262 // NOLINTBEGIN
263 MCAPI void* $ctor();
264
265 MCFOLD void* $ctor(::SerializedSkinRef&& rhs);
266
267 MCFOLD void* $ctor(::SerializedSkinRef const& rhs);
268
269 MCAPI void* $ctor(::std::string const& playFabId, ::ConnectionRequest const& connectionRequest);
270
271 MCAPI void* $ctor(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
272
273 MCAPI void* $ctor(
274 ::std::string const& name,
275 ::std::string const& playFabId,
276 ::std::string const& resourcePatch,
277 ::mce::Image const& skinImage,
278 ushort const& skinImageWidth,
279 ushort const& skinImageHeight,
280 ::mce::Image const& capeImage,
281 ushort const& capeImageWidth,
282 ushort const& capeImageHeight,
283 ::Json::Value&& geometryData,
284 ::MinEngineVersion const& geometryDataMinEngineVersion,
285 ::std::string const& animationData,
286 ::std::string const& capeId,
287 bool isTrustedSkin,
288 bool isPremium,
289 bool isPersona,
290 bool isPersonaCapeOnClassicSkin,
291 bool isPrimaryUser,
292 bool overridesPlayerAppearance
293 );
294 // NOLINTEND
295
296public:
297 // destructor thunk
298 // NOLINTBEGIN
299 MCFOLD void $dtor();
300 // NOLINTEND
301};
Definition AnimatedImageData.h:15
Definition ThreadOwner.h:8
Definition BinaryStream.h:11
Definition ConnectionRequest.h:20
Definition Value.h:16
Definition LevelData.h:55
Definition MinEngineVersion.h:15
Definition ReadOnlyBinaryStream.h:8
Definition SerializedPersonaPieceHandle.h:9
Definition SerializedSkinImpl.h:27
Definition SubClientConnectionRequest.h:16
Definition TintMapColor.h:8
Definition Color.h:13
Definition SkinImage.h:8
Definition Image.h:12