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