LeviLamina
Loading...
Searching...
No Matches
BaseConnectionRequest.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/certificates/identity/PlayerAuthenticationType.h"
7#include "mc/certificates/identity/RawGameServerToken.h"
8#include "mc/deps/core/platform/BuildPlatform.h"
9#include "mc/deps/core/platform/PlatformType.h"
10#include "mc/deps/input/InputMode.h"
11#include "mc/deps/json/Value.h"
12#include "mc/world/actor/player/persona/PieceType.h"
13
14// auto generated forward declare list
15// clang-format off
19class TintMapColor;
20class WebToken;
24namespace mce { class Color; }
25// clang-format on
26
27class BaseConnectionRequest {
28public:
29 // BaseConnectionRequest inner types declare
30 // clang-format off
32 // clang-format on
33
34 // BaseConnectionRequest inner types define
36 public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::WebToken>> rawToken;
40 ::ll::TypedStorage<8, 16, ::Json::Value> authData;
41 // NOLINTEND
42
43 public:
44 // member functions
45 // NOLINTBEGIN
47 // NOLINTEND
48
49 public:
50 // destructor thunk
51 // NOLINTBEGIN
52 MCAPI void $dtor();
53 // NOLINTEND
54 };
55
56public:
57 // member variables
58 // NOLINTBEGIN
59 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::WebToken>> mRawToken;
60 ::ll::TypedStorage<8, 32, ::RawGameServerToken> mUnverifiedGameServerToken;
61 ::ll::TypedStorage<4, 4, ::PlayerAuthenticationType> mAuthenticationType;
62 // NOLINTEND
63
64public:
65 // prevent constructor by default
66 BaseConnectionRequest& operator=(BaseConnectionRequest const&);
67 BaseConnectionRequest();
68
69public:
70 // virtual functions
71 // NOLINTBEGIN
72 virtual ~BaseConnectionRequest();
73
74 virtual bool _isAuthTypeWellFormed() const = 0;
75 // NOLINTEND
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCAPI BaseConnectionRequest(::BaseConnectionRequest const& other);
81
82 MCAPI BaseConnectionRequest(::std::unique_ptr<::WebToken> rawToken, ::Json::Value const& authentication);
83
84 MCFOLD ::RawGameServerToken const& _getGameServerToken() const;
85
86 MCFOLD ::WebToken const& _getRawRequest() const;
87
88 MCAPI bool _isUsingRestrictedIds() const;
89
90 MCAPI ::std::vector<::AnimatedImageData> getAnimatedImageData() const;
91
92 MCAPI ::std::string getArmSize() const;
93
94 MCFOLD ::PlayerAuthenticationType getAuthenticationType() const;
95
96 MCAPI ::std::vector<uchar> getCapeData() const;
97
98 MCAPI ::std::string getCapeId() const;
99
100 MCAPI ushort getCapeImageHeight() const;
101
102 MCAPI ushort getCapeImageWidth() const;
103
104 MCAPI ::SyncedClientOptionsComponent getClientOptions() const;
105
106 MCAPI uint64 getClientRandomId() const;
107
108 MCAPI ::InputMode getCurrentInputMode() const;
109
110 MCAPI ::std::string getDeviceId() const;
111
112 MCAPI ::BuildPlatform getDeviceOS() const;
113
114 MCAPI ::std::string getLanguageCode() const;
115
116 MCAPI ::std::vector<::SerializedPersonaPieceHandle> getPersonaPieces() const;
117
118 MCAPI ::std::unordered_map<::persona::PieceType, ::TintMapColor> getPieceTintColors() const;
119
120 MCAPI ::std::string getPlatformId() const;
121
122 MCAPI ::std::string getPlatformOfflineId() const;
123
124 MCAPI ::std::string getPlatformOnlineId() const;
125
126 MCAPI ::PlatformType getPlatformType() const;
127
128 MCAPI ::std::string getSelfSignedId() const;
129
130 MCAPI ::std::string getSkinAnimationData() const;
131
132 MCAPI ::mce::Color getSkinColor() const;
133
134 MCAPI ::std::vector<uchar> getSkinData() const;
135
136 MCAPI ::std::string getSkinGeometry() const;
137
138 MCAPI ::MinEngineVersion getSkinGeometryMinEngineVersion() const;
139
140 MCAPI ::std::string getSkinId() const;
141
142 MCAPI ushort getSkinImageHeight() const;
143
144 MCAPI ushort getSkinImageWidth() const;
145
146 MCAPI ::std::string getSkinResourcePatch() const;
147
148 MCAPI ::std::string getThirdPartyName() const;
149
150 MCAPI bool isCapeOnClassicSkin() const;
151
152 MCAPI bool isCompatibleWithClientSideChunkGen() const;
153
154 MCAPI bool isOverrideSkin() const;
155
156 MCAPI bool isPersonaSkin() const;
157
158 MCAPI bool isPremiumSkin() const;
159
160 MCAPI bool isTrustedSkin() const;
161
162 MCAPI bool isWellFormed() const;
163
164 MCAPI ::std::string toString();
165 // NOLINTEND
166
167public:
168 // static functions
169 // NOLINTBEGIN
170#ifdef LL_PLAT_C
171 MCAPI static ::Json::Value _createAuthJson(::ConnectionAuthInfo const& authInfo);
172
173 MCAPI static void _fillPersonaJson(::Json::Value& root, ::ConnectionSkinInfo const& skinInfo);
174#endif
175
176 MCAPI static ::BaseConnectionRequest::ParsedConnectionString _parseConnectionString(::std::string const& str);
177 // NOLINTEND
178
179public:
180 // constructor thunks
181 // NOLINTBEGIN
182 MCAPI void* $ctor(::BaseConnectionRequest const& other);
183
184 MCAPI void* $ctor(::std::unique_ptr<::WebToken> rawToken, ::Json::Value const& authentication);
185 // NOLINTEND
186
187public:
188 // destructor thunk
189 // NOLINTBEGIN
190 MCFOLD void $dtor();
191 // NOLINTEND
192
193public:
194 // virtual function thunks
195 // NOLINTBEGIN
196
197 // NOLINTEND
198
199public:
200 // vftables
201 // NOLINTBEGIN
202 MCNAPI static void** $vftable();
203 // NOLINTEND
204};
Definition AnimatedImageData.h:15
static MCAPI void ** $vftable()
Definition Value.h:16
Definition MinEngineVersion.h:15
Definition SerializedPersonaPieceHandle.h:9
Definition TintMapColor.h:8
Definition WebToken.h:16
Definition Color.h:13
Definition BaseConnectionRequest.h:35
Definition ConnectionAuthInfo.h:5
Definition ConnectionSkinInfo.h:5
Definition SyncedClientOptionsComponent.h:10