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/client/gui/oreui/binding/queries/core/PlatformType.h"
9#include "mc/deps/certificates/WebToken.h"
10#include "mc/deps/core/platform/BuildPlatform.h"
11#include "mc/deps/input/InputMode.h"
12#include "mc/deps/json/Value.h"
13#include "mc/deps/shared_types/persona/PieceType.h"
14
15// auto generated forward declare list
16// clang-format off
20class TintMapColor;
23namespace Social { struct Nonce; }
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, 136, ::std::optional<::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, 136, ::std::optional<::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::optional<::WebToken> rawToken, ::Json::Value const& authentication);
83
84 MCAPI bool _isUsingRestrictedIds() const;
85
86 MCAPI ::std::vector<::AnimatedImageData> getAnimatedImageData() const;
87
88 MCAPI ::std::string getArmSize() const;
89
90 MCAPI ::std::vector<uchar> getCapeData() const;
91
92 MCAPI ::std::string getCapeId() const;
93
94 MCAPI ushort getCapeImageHeight() const;
95
96 MCAPI ushort getCapeImageWidth() const;
97
98 MCAPI uint64 getClientRandomId() const;
99
100 MCAPI ::InputMode getCurrentInputMode() const;
101
102 MCAPI ::std::string getDeviceId() const;
103
104 MCAPI ::BuildPlatform getDeviceOS() const;
105
106 MCAPI ::std::string getLanguageCode() const;
107
108 MCAPI ::std::optional<::Social::Nonce> getNonce() const;
109
110 MCAPI ::std::vector<::SerializedPersonaPieceHandle> getPersonaPieces() const;
111
112 MCAPI ::std::unordered_map<::SharedTypes::persona::PieceType, ::TintMapColor> getPieceTintColors() const;
113
114 MCAPI ::std::string getPlatformId() const;
115
116 MCAPI ::std::string getPlatformOfflineId() const;
117
118 MCAPI ::std::string getPlatformOnlineId() const;
119
120 MCAPI ::PlatformType getPlatformType() const;
121
122 MCAPI ::std::string getProfileHash() const;
123
124 MCAPI ::std::string getSelfSignedId() const;
125
126 MCAPI ::std::string getSkinAnimationData() const;
127
128 MCAPI ::mce::Color getSkinColor() const;
129
130 MCAPI ::std::vector<uchar> getSkinData() const;
131
132 MCAPI ::std::string getSkinGeometry() const;
133
134 MCAPI ::MinEngineVersion getSkinGeometryMinEngineVersion() const;
135
136 MCAPI ::std::string getSkinId() const;
137
138 MCAPI ushort getSkinImageHeight() const;
139
140 MCAPI ushort getSkinImageWidth() const;
141
142 MCAPI ::std::string getSkinResourcePatch() const;
143
144 MCAPI ::std::string getThirdPartyName() const;
145
146 MCAPI bool isCapeOnClassicSkin() const;
147
148 MCAPI bool isCompatibleWithClientSideChunkGen() const;
149
150 MCAPI bool isOverrideSkin() const;
151
152 MCAPI bool isPersonaSkin() const;
153
154 MCAPI bool isPremiumSkin() const;
155
156 MCAPI bool isTrustedSkin() const;
157
158 MCAPI bool isWellFormed() const;
159
160 MCAPI ::std::string toString();
161 // NOLINTEND
162
163public:
164 // static functions
165 // NOLINTBEGIN
166#ifdef LL_PLAT_C
167 MCAPI static ::Json::Value _createAuthJson(::ConnectionAuthInfo const& authInfo);
168
169 MCAPI static void _fillPersonaJson(::Json::Value& root, ::ConnectionSkinInfo const& skinInfo);
170#endif
171
172 MCAPI static ::BaseConnectionRequest::ParsedConnectionString _parseConnectionString(::std::string const& str);
173 // NOLINTEND
174
175public:
176 // constructor thunks
177 // NOLINTBEGIN
178 MCAPI void* $ctor(::BaseConnectionRequest const& other);
179
180 MCAPI void* $ctor(::std::optional<::WebToken> rawToken, ::Json::Value const& authentication);
181 // NOLINTEND
182
183public:
184 // destructor thunk
185 // NOLINTBEGIN
186 MCFOLD void $dtor();
187 // NOLINTEND
188
189public:
190 // vftables
191 // NOLINTBEGIN
192 MCNAPI static void** $vftable();
193 // NOLINTEND
194};
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 Color.h:13
Definition BaseConnectionRequest.h:35
Definition ConnectionAuthInfo.h:14
Definition ConnectionSkinInfo.h:5
Definition Nonce.h:10