LeviLamina
Loading...
Searching...
No Matches
SerializedSkinImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Color.h"
7#include "mc/deps/json/Value.h"
8#include "mc/deps/shared_types/persona/ArmSizeType.h"
9#include "mc/deps/shared_types/persona/PieceType.h"
10#include "mc/resources/MinEngineVersion.h"
11#include "mc/world/actor/player/SkinImage.h"
12#include "mc/world/actor/player/TrustedSkinFlag.h"
13
14// auto generated forward declare list
15// clang-format off
20class TintMapColor;
21namespace mce { struct Image; }
22// clang-format on
23
24class SerializedSkinImpl {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 32, ::std::string> mId;
29 ::ll::TypedStorage<8, 32, ::std::string> mPlayFabId;
30 ::ll::TypedStorage<8, 32, ::std::string> mFullId;
31 ::ll::TypedStorage<8, 32, ::std::string> mResourcePatch;
32 ::ll::TypedStorage<8, 32, ::std::string> mDefaultGeometryName;
33 ::ll::TypedStorage<8, 48, ::SkinImage> mSkinImage;
34 ::ll::TypedStorage<8, 48, ::SkinImage> mCapeImage;
35 ::ll::TypedStorage<8, 24, ::std::vector<::AnimatedImageData>> mSkinAnimatedImages;
36 ::ll::TypedStorage<8, 16, ::Json::Value> mGeometryData;
37 ::ll::TypedStorage<8, 32, ::MinEngineVersion> mGeometryDataMinEngineVersion;
38 ::ll::TypedStorage<8, 16, ::Json::Value> mGeometryDataMutable;
39 ::ll::TypedStorage<8, 32, ::std::string> mAnimationData;
40 ::ll::TypedStorage<8, 32, ::std::string> mCapeId;
41 ::ll::TypedStorage<8, 24, ::std::vector<::SerializedPersonaPieceHandle>> mPersonaPieces;
42 ::ll::TypedStorage<1, 1, ::SharedTypes::persona::ArmSizeType> mArmSizeType;
43 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SharedTypes::persona::PieceType, ::TintMapColor>> mPieceTintColors;
44 ::ll::TypedStorage<4, 16, ::mce::Color> mSkinColor;
45 ::ll::TypedStorage<1, 1, ::TrustedSkinFlag> mIsTrustedSkin;
46 ::ll::TypedStorage<1, 1, bool> mIsPremium;
47 ::ll::TypedStorage<1, 1, bool> mIsPersona;
48 ::ll::TypedStorage<1, 1, bool> mIsPersonaCapeOnClassicSkin;
49 ::ll::TypedStorage<1, 1, bool> mIsPrimaryUser;
50 ::ll::TypedStorage<1, 1, bool> mOverridesPlayerAppearance;
51 ::ll::TypedStorage<8, 32, ::std::string> mProfileHash;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI SerializedSkinImpl();
58
59 MCAPI SerializedSkinImpl(::std::string const& playFabId, ::ConnectionRequest const& request);
60
61 MCAPI SerializedSkinImpl(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
62
63 MCAPI SerializedSkinImpl(
64 ::std::string const& name,
65 ::std::string const& playFabId,
66 ::std::string const& resourcePatch,
67 ::mce::Image const& skinImage,
68 ushort const& skinImageWidth,
69 ushort const& skinImageHeight,
70 ::mce::Image const& capeImage,
71 ushort const& capeImageWidth,
72 ushort const& capeImageHeight,
73 ::Json::Value&& geometryData,
74 ::MinEngineVersion const& geometryDataMinEngineVersion,
75 ::std::string const& animationData,
76 ::std::string const& capeId,
77 bool isTrustedSkin,
78 bool isPremium,
79 bool isPersona,
80 bool isPersonaCapeOnClassicSkin,
81 bool isPrimaryUser,
82 bool overridesPlayerAppearance
83 );
84
85 MCAPI bool operator==(::SerializedSkinImpl const& rhs) const;
86
87 MCAPI void setCapeId(::std::string const& capeId);
88
89#ifdef LL_PLAT_C
90 MCAPI void setCapeImageData(::mce::Image const* image);
91#endif
92
93 MCAPI void setId(::std::string const& id);
94
95#ifdef LL_PLAT_C
96 MCAPI void setImageData(::mce::Image const* image);
97#endif
98
99 MCAPI void setPersonaAppearanceData(
100 ::SharedTypes::persona::ArmSizeType const& armSizeType,
101 ::mce::Color const& skinColor,
102 ::std::vector<::SerializedPersonaPieceHandle> personaPieces,
103 ::std::unordered_map<::SharedTypes::persona::PieceType, ::TintMapColor> const& pieceTintColors
104 );
105
106 MCAPI void updateGeometryName();
107 // NOLINTEND
108
109public:
110 // constructor thunks
111 // NOLINTBEGIN
112 MCAPI void* $ctor();
113
114 MCAPI void* $ctor(::std::string const& playFabId, ::ConnectionRequest const& request);
115
116 MCAPI void* $ctor(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
117
118 MCAPI void* $ctor(
119 ::std::string const& name,
120 ::std::string const& playFabId,
121 ::std::string const& resourcePatch,
122 ::mce::Image const& skinImage,
123 ushort const& skinImageWidth,
124 ushort const& skinImageHeight,
125 ::mce::Image const& capeImage,
126 ushort const& capeImageWidth,
127 ushort const& capeImageHeight,
128 ::Json::Value&& geometryData,
129 ::MinEngineVersion const& geometryDataMinEngineVersion,
130 ::std::string const& animationData,
131 ::std::string const& capeId,
132 bool isTrustedSkin,
133 bool isPremium,
134 bool isPersona,
135 bool isPersonaCapeOnClassicSkin,
136 bool isPrimaryUser,
137 bool overridesPlayerAppearance
138 );
139 // NOLINTEND
140};
Definition AnimatedImageData.h:15
Definition ConnectionRequest.h:24
Definition Value.h:16
Definition MinEngineVersion.h:15
Definition SerializedPersonaPieceHandle.h:9
Definition SubClientConnectionRequest.h:19
Definition TintMapColor.h:8
Definition Color.h:13
Definition Image.h:13