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/image/Image.h"
7#include "mc/deps/core/math/Color.h"
8#include "mc/deps/json/Value.h"
9#include "mc/platform/Result.h"
10#include "mc/resources/MinEngineVersion.h"
11#include "mc/world/actor/player/TrustedSkinFlag.h"
12#include "mc/world/actor/player/persona/ArmSize.h"
13#include "mc/world/actor/player/persona/PieceType.h"
14
15// auto generated forward declare list
16// clang-format off
18class BinaryStream;
23class TintMapColor;
24// clang-format on
25
26class SerializedSkinImpl {
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 32, ::std::string> mId;
31 ::ll::TypedStorage<8, 32, ::std::string> mPlayFabId;
32 ::ll::TypedStorage<8, 32, ::std::string> mFullId;
33 ::ll::TypedStorage<8, 32, ::std::string> mResourcePatch;
34 ::ll::TypedStorage<8, 32, ::std::string> mDefaultGeometryName;
35 ::ll::TypedStorage<8, 48, ::mce::Image> mSkinImage;
36 ::ll::TypedStorage<8, 48, ::mce::Image> mCapeImage;
37 ::ll::TypedStorage<8, 24, ::std::vector<::AnimatedImageData>> mSkinAnimatedImages;
38 ::ll::TypedStorage<8, 16, ::Json::Value> mGeometryData;
39 ::ll::TypedStorage<8, 32, ::MinEngineVersion> mGeometryDataMinEngineVersion;
40 ::ll::TypedStorage<8, 16, ::Json::Value> mGeometryDataMutable;
41 ::ll::TypedStorage<8, 32, ::std::string> mAnimationData;
42 ::ll::TypedStorage<8, 32, ::std::string> mCapeId;
43 ::ll::TypedStorage<8, 24, ::std::vector<::SerializedPersonaPieceHandle>> mPersonaPieces;
44 ::ll::TypedStorage<1, 1, ::persona::ArmSize::Type> mArmSizeType;
45 ::ll::TypedStorage<8, 64, ::std::unordered_map<::persona::PieceType, ::TintMapColor>> mPieceTintColors;
46 ::ll::TypedStorage<4, 16, ::mce::Color> mSkinColor;
47 ::ll::TypedStorage<1, 1, ::TrustedSkinFlag> mIsTrustedSkin;
48 ::ll::TypedStorage<1, 1, bool> mIsPremium;
49 ::ll::TypedStorage<1, 1, bool> mIsPersona;
50 ::ll::TypedStorage<1, 1, bool> mIsPersonaCapeOnClassicSkin;
51 ::ll::TypedStorage<1, 1, bool> mIsPrimaryUser;
52 ::ll::TypedStorage<1, 1, bool> mOverridesPlayerAppearance;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI SerializedSkinImpl();
59
60 MCAPI SerializedSkinImpl(::std::string const& playFabId, ::ConnectionRequest const& request);
61
62 MCAPI SerializedSkinImpl(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
63
64 MCAPI SerializedSkinImpl(
65 ::std::string const& name,
66 ::std::string const& playFabId,
67 ::std::string const& resourcePatch,
68 ::mce::Image const& skinImage,
69 ushort const& skinImageWidth,
70 ushort const& skinImageHeight,
71 ::mce::Image const& capeImage,
72 ushort const& capeImageWidth,
73 ushort const& capeImageHeight,
74 ::Json::Value&& geometryData,
75 ::MinEngineVersion const& geometryDataMinEngineVersion,
76 ::std::string const& animationData,
77 ::std::string const& capeId,
78 bool isTrustedSkin,
79 bool isPremium,
80 bool isPersona,
81 bool isPersonaCapeOnClassicSkin,
82 bool isPrimaryUser,
83 bool overridesPlayerAppearance
84 );
85
86 MCAPI ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream);
87
88 MCAPI void setArmSizeFromString(::std::string const& armSizeStr);
89
90 MCAPI_C void setCapeId(::std::string const& capeId);
91
92 MCAPI void updateGeometryName();
93
94 MCAPI void write(::BinaryStream& stream) const;
95
96 MCAPI ~SerializedSkinImpl();
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCAPI void* $ctor();
103
104 MCAPI void* $ctor(::std::string const& playFabId, ::ConnectionRequest const& request);
105
106 MCAPI void* $ctor(::std::string const& playFabId, ::SubClientConnectionRequest const& request);
107
108 MCAPI void* $ctor(
109 ::std::string const& name,
110 ::std::string const& playFabId,
111 ::std::string const& resourcePatch,
112 ::mce::Image const& skinImage,
113 ushort const& skinImageWidth,
114 ushort const& skinImageHeight,
115 ::mce::Image const& capeImage,
116 ushort const& capeImageWidth,
117 ushort const& capeImageHeight,
118 ::Json::Value&& geometryData,
119 ::MinEngineVersion const& geometryDataMinEngineVersion,
120 ::std::string const& animationData,
121 ::std::string const& capeId,
122 bool isTrustedSkin,
123 bool isPremium,
124 bool isPersona,
125 bool isPersonaCapeOnClassicSkin,
126 bool isPrimaryUser,
127 bool overridesPlayerAppearance
128 );
129 // NOLINTEND
130
131public:
132 // destructor thunk
133 // NOLINTBEGIN
134 MCAPI void $dtor();
135 // NOLINTEND
136};
Definition AnimatedImageData.h:10
Definition BinaryStream.h:11
Definition ConnectionRequest.h:29
Definition Value.h:16
Definition MinEngineVersion.h:10
Definition ReadOnlyBinaryStream.h:8
Definition SerializedPersonaPieceHandle.h:9
Definition SubClientConnectionRequest.h:24
Definition TintMapColor.h:8
Definition Image.h:12