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 setAnimatedImageData(::std::vector<::AnimatedImageData> animatedImages);
88
89#ifdef LL_PLAT_C
90 MCAPI void setCapeId(::std::string const& capeId);
91
92 MCAPI void setCapeImageData(::mce::Image const* image);
93
94 MCAPI void setImageData(::mce::Image const* image);
95#endif
96
97 MCAPI void setPersonaAppearanceData(
98 ::SharedTypes::persona::ArmSizeType const& armSizeType,
99 ::mce::Color const& skinColor,
100 ::std::vector<::SerializedPersonaPieceHandle> personaPieces,
101 ::std::unordered_map<::SharedTypes::persona::PieceType, ::TintMapColor> const& pieceTintColors
102 );
103
104 MCAPI void updateGeometryName();
105 // NOLINTEND
106
107public:
108 // constructor thunks
109 // NOLINTBEGIN
110 MCAPI void* $ctor();
111
112 MCAPI void* $ctor(::std::string const& playFabId, ::ConnectionRequest const& request);
113
114 MCAPI void* $ctor(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
115
116 MCAPI void* $ctor(
117 ::std::string const& name,
118 ::std::string const& playFabId,
119 ::std::string const& resourcePatch,
120 ::mce::Image const& skinImage,
121 ushort const& skinImageWidth,
122 ushort const& skinImageHeight,
123 ::mce::Image const& capeImage,
124 ushort const& capeImageWidth,
125 ushort const& capeImageHeight,
126 ::Json::Value&& geometryData,
127 ::MinEngineVersion const& geometryDataMinEngineVersion,
128 ::std::string const& animationData,
129 ::std::string const& capeId,
130 bool isTrustedSkin,
131 bool isPremium,
132 bool isPersona,
133 bool isPersonaCapeOnClassicSkin,
134 bool isPrimaryUser,
135 bool overridesPlayerAppearance
136 );
137 // NOLINTEND
138};
Definition AnimatedImageData.h:15
Definition ConnectionRequest.h:26
Definition Value.h:16
Definition MinEngineVersion.h:15
Definition SerializedPersonaPieceHandle.h:9
Definition SubClientConnectionRequest.h:21
Definition TintMapColor.h:8
Definition Color.h:13
Definition Image.h:13