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/util/ThreadOwner.h"
7#include "mc/world/actor/player/persona/AnimatedTextureType.h"
8#include "mc/world/actor/player/persona/ArmSize.h"
9#include "mc/world/actor/player/persona/PieceType.h"
10
11// auto generated forward declare list
12// clang-format off
16class TintMapColor;
17struct SkinImage;
18namespace Json { class Value; }
19namespace mce { class Color; }
20namespace mce { struct Image; }
21// clang-format on
22
23class SerializedSkinRef {
24public:
25 // SerializedSkinRef inner types define
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Application::ThreadOwner<::SerializedSkinImpl, 0>>>
32 mSkinImpl;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 SerializedSkinRef(SerializedSkinRef const&);
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI SerializedSkinRef();
43
44 MCAPI SerializedSkinRef(
45 ::std::string const& name,
46 ::std::string const& playFabId,
47 ::std::string const& resourcePatch,
48 ::mce::Image const& skinImage,
49 ushort const& skinImageWidth,
50 ushort const& skinImageHeight,
51 ::mce::Image const& capeImage,
52 ushort const& capeImageWidth,
53 ushort const& capeImageHeight,
54 ::Json::Value&& geometryData,
55 ::MinEngineVersion const& geometryDataMinEngineVersion,
56 ::std::string const& animationData,
57 ::std::string const& capeId,
58 bool isTrustedSkin,
59 bool isPremium,
60 bool isPersona,
61 bool isPersonaCapeOnClassicSkin,
62 bool isPrimaryUser,
63 bool overridesPlayerAppearance
64 );
65
66 MCAPI float getAnimationFrames(::persona::AnimatedTextureType animationType) const;
67
68#ifdef LL_PLAT_C
69 MCAPI bool isValid() const;
70#endif
71
72 MCFOLD ::SerializedSkinRef& operator=(::SerializedSkinRef&&);
73
74 MCFOLD ::SerializedSkinRef& operator=(::SerializedSkinRef const&);
75
76#ifdef LL_PLAT_C
77 MCAPI void setCapeImageData(::mce::Image const* image);
78#endif
79
80 MCAPI void setCapeImageDataCereal(::SkinImage const& image);
81
82#ifdef LL_PLAT_C
83 MCAPI void setGeometryData(::Json::Value data, ::MinEngineVersion minEngineVersion);
84#endif
85
86 MCAPI void setGeometryDataCereal(::Json::Value data);
87
88 MCAPI void setGeometryDataMinEngineVersion(::MinEngineVersion minEngineVersion);
89
90#ifdef LL_PLAT_C
91 MCAPI void setImageData(::mce::Image const* image);
92#endif
93
94 MCAPI void setImageDataCereal(::SkinImage const& image);
95
96 MCAPI void setPersonaAppearanceData(
97 ::persona::ArmSize::Type const& armSizeType,
98 ::mce::Color const& skinColor,
99 ::std::vector<::SerializedPersonaPieceHandle> personaPieces,
100 ::std::unordered_map<::persona::PieceType, ::TintMapColor> const& pieceTintColors
101 );
102
103 MCAPI ~SerializedSkinRef();
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor();
110
111 MCAPI void* $ctor(
112 ::std::string const& name,
113 ::std::string const& playFabId,
114 ::std::string const& resourcePatch,
115 ::mce::Image const& skinImage,
116 ushort const& skinImageWidth,
117 ushort const& skinImageHeight,
118 ::mce::Image const& capeImage,
119 ushort const& capeImageWidth,
120 ushort const& capeImageHeight,
121 ::Json::Value&& geometryData,
122 ::MinEngineVersion const& geometryDataMinEngineVersion,
123 ::std::string const& animationData,
124 ::std::string const& capeId,
125 bool isTrustedSkin,
126 bool isPremium,
127 bool isPersona,
128 bool isPersonaCapeOnClassicSkin,
129 bool isPrimaryUser,
130 bool overridesPlayerAppearance
131 );
132 // NOLINTEND
133
134public:
135 // destructor thunk
136 // NOLINTBEGIN
137 MCFOLD void $dtor();
138 // NOLINTEND
139};
Definition ThreadOwner.h:8
Definition Value.h:16
Definition MinEngineVersion.h:10
Definition SerializedPersonaPieceHandle.h:9
Definition SerializedSkinImpl.h:27
Definition TintMapColor.h:8
Definition Color.h:13
Definition SkinImage.h:8
Definition Image.h:12