LeviLamina
Loading...
Searching...
No Matches
ConnectionRequest.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/certificates/identity/edu/Role.h"
7#include "mc/deps/input/InputMode.h"
8#include "mc/network/BaseConnectionRequest.h"
9#include "mc/network/EditorConnectionJoinIntent.h"
10#include "mc/platform/Result.h"
11
12// auto generated forward declare list
13// clang-format off
14class ILevel;
15class WebToken;
18struct PlayerPartyInfo;
20namespace Json { class Value; }
21namespace Social { struct Nonce; }
22// clang-format on
23
24class ConnectionRequest : public ::BaseConnectionRequest {
25public:
26 // prevent constructor by default
27 ConnectionRequest();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~ConnectionRequest() /*override*/;
33
34 virtual bool _isAuthTypeWellFormed() const /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI ConnectionRequest(::std::optional<::WebToken> rawToken, ::Json::Value const& authentication);
41
42 MCAPI bool clientIsEditorCapable() const;
43
44 MCAPI ::EditorConnectionJoinIntent getClientEditorConnectionIntent() const;
45
46 MCAPI ::std::string getDeviceModel() const;
47
48 MCAPI ::std::string getEduJoinerToHostNonce() const;
49
50 MCAPI ::std::string getEduSessionToken() const;
51
52 MCAPI ::std::string getEduTokenChain() const;
53
54 MCAPI ::std::optional<::PlayerPartyInfo> getPartyInfo() const;
55
56 MCAPI bool isEduMode() const;
57
58 MCAPI ::Bedrock::Result<::EditorConnectionJoinIntent>
59 validateEditorConnectionJoinIntentAgainstServerPolicy(::gsl::not_null<::ILevel*> level) const;
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65#ifdef LL_PLAT_C
66 MCAPI static ::ConnectionRequest create(
67 ::ConnectionAuthInfo const& authInfo,
68 ::std::string const& selfSignedId,
69 ::std::string const& serverAddress,
70 uint64 clientRandomId,
71 ::ConnectionSkinInfo const& skinInfo,
72 ::std::string const& deviceId,
73 ::InputMode currentInputMode,
74 int guiScale,
75 ::std::string const& languageCode,
76 bool clientIsEditorCapable,
77 ::EditorConnectionJoinIntent clientEditorConnectionIntent,
78 bool isEduMode,
79 ::std::optional<::WebToken> eduTokenChain,
80 ::std::string eduSessionToken,
81 ::std::string eduJoinerToHostNonce,
82 ::edu::Role classRole,
83 ::std::string const& platformId,
84 ::std::string const& thirdPartyName,
85 ::std::string const& platformOnlineId,
86 ::std::string const& platformOfflineId,
87 ::std::optional<::PlayerPartyInfo> const& partyInfo,
88 bool compatibleWithClientSideChunkGen,
89 ::SyncedClientOptionsComponent const& options,
90 ::std::optional<::Social::Nonce> const& nonce
91 );
92#endif
93
94 MCAPI static ::ConnectionRequest fromString(::std::string const& str);
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCAPI void* $ctor(::std::optional<::WebToken> rawToken, ::Json::Value const& authentication);
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCAPI void $dtor();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCAPI bool $_isAuthTypeWellFormed() const;
113
114
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
static MCAPI void ** $vftable()
Definition ILevel.h:220
Definition Value.h:16
Definition WebToken.h:17
Definition ConnectionAuthInfo.h:14
Definition ConnectionSkinInfo.h:5
Definition PlayerPartyInfo.h:5
Definition Nonce.h:10
Definition SyncedClientOptionsComponent.h:10