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