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/deps/shared_types/persona/ArmSizeType.h"
7#include "mc/deps/shared_types/persona/PieceType.h"
8#include "mc/util/ThreadOwner.h"
9
10// auto generated forward declare list
11// clang-format off
17class TintMapColor;
18struct SkinImage;
19namespace Json { class Value; }
20namespace mce { class Color; }
21namespace mce { struct Image; }
22// clang-format on
23
24class SerializedSkinRef {
25public:
26 // SerializedSkinRef inner types define
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Application::ThreadOwner<::SerializedSkinImpl, 0>>>
33 mSkinImpl;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 SerializedSkinRef(SerializedSkinRef const&);
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI SerializedSkinRef();
44
45 MCAPI SerializedSkinRef(::std::string const& playFabId, ::ConnectionRequest const& connectionRequest);
46
47 MCAPI SerializedSkinRef(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
48
49 MCAPI SerializedSkinRef(
50 ::std::string const& name,
51 ::std::string const& playFabId,
52 ::std::string const& resourcePatch,
53 ::mce::Image const& skinImage,
54 ushort const& skinImageWidth,
55 ushort const& skinImageHeight,
56 ::mce::Image const& capeImage,
57 ushort const& capeImageWidth,
58 ushort const& capeImageHeight,
59 ::Json::Value&& geometryData,
60 ::MinEngineVersion const& geometryDataMinEngineVersion,
61 ::std::string const& animationData,
62 ::std::string const& capeId,
63 bool isTrustedSkin,
64 bool isPremium,
65 bool isPersona,
66 bool isPersonaCapeOnClassicSkin,
67 bool isPrimaryUser,
68 bool overridesPlayerAppearance
69 );
70
71#ifdef LL_PLAT_C
72 MCAPI int64 estimateSizeInBytes() const;
73#endif
74
75 MCFOLD ::SerializedSkinRef& operator=(::SerializedSkinRef&& rhs);
76
77 MCAPI ::SerializedSkinRef& operator=(::SerializedSkinRef const& rhs);
78
79#ifdef LL_PLAT_S
80 MCAPI void setCapeImageDataCereal(::SkinImage const& image);
81#endif
82
83#ifdef LL_PLAT_C
84 MCAPI void setGeometryData(::Json::Value data, ::MinEngineVersion minEngineVersion);
85#endif
86
87 MCAPI void setGeometryDataMinEngineVersion(::MinEngineVersion minEngineVersion);
88
89#ifdef LL_PLAT_S
90 MCAPI void setImageDataCereal(::SkinImage const& image);
91#endif
92
93 MCAPI void setPersonaAppearanceData(
94 ::SharedTypes::persona::ArmSizeType const& armSizeType,
95 ::mce::Color const& skinColor,
96 ::std::vector<::SerializedPersonaPieceHandle> personaPieces,
97 ::std::unordered_map<::SharedTypes::persona::PieceType, ::TintMapColor> const& pieceTintColors
98 );
99
100 MCAPI ~SerializedSkinRef();
101 // NOLINTEND
102
103public:
104 // static functions
105 // NOLINTBEGIN
106 MCAPI static ::SerializedSkinRef createTrustedDefaultSerializedSkin();
107 // NOLINTEND
108
109public:
110 // constructor thunks
111 // NOLINTBEGIN
112 MCAPI void* $ctor();
113
114 MCAPI void* $ctor(::std::string const& playFabId, ::ConnectionRequest const& connectionRequest);
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
141public:
142 // destructor thunk
143 // NOLINTBEGIN
144 MCFOLD void $dtor();
145 // NOLINTEND
146};
Definition ThreadOwner.h:8
Definition ConnectionRequest.h:24
Definition Value.h:16
Definition MinEngineVersion.h:15
Definition SerializedPersonaPieceHandle.h:9
Definition SerializedSkinImpl.h:24
Definition SubClientConnectionRequest.h:19
Definition TintMapColor.h:8
Definition Color.h:13
Definition SkinImage.h:8
Definition Image.h:13