Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ClientNetherNetConnector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7#include "mc/network/NetherNetConnector.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace NetherNet { class IIdentityAssertionGenerator; }
12namespace NetherNet { struct NetworkID; }
13namespace Social { class GameConnectionInfo; }
14namespace Social { struct ResolvedExperienceInfo; }
15// clang-format on
16
17struct ClientNetherNetConnector : public ::NetherNetConnector {
18public:
19 // member variables
20 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 ClientNetherNetConnector& operator=(ClientNetherNetConnector const&);
27 ClientNetherNetConnector(ClientNetherNetConnector const&);
28 ClientNetherNetConnector();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~ClientNetherNetConnector() /*override*/ = default;
34
35 virtual bool closeSessionWithUser(::NetherNet::NetworkID remoteId, uint64 sessionId) /*override*/;
36
37 virtual ::Social::GameConnectionInfo const& getConnectedGameInfo() const /*override*/;
38
39 virtual void setConnectedResolvedExperienceInfo(
40 ::std::optional<::Social::ResolvedExperienceInfo> const& resolvedExperienceInfo
41 ) /*override*/;
42
43 virtual bool connect(
44 ::Social::GameConnectionInfo const& primaryConnection,
45 ::Social::GameConnectionInfo const& backupConnection,
46 ::std::shared_ptr<::NetherNet::IIdentityAssertionGenerator> identityGenerator
47 ) /*override*/;
48
49 virtual void disconnect() /*override*/;
50
51 virtual bool isServer() const /*override*/;
52
53 virtual ::Bedrock::Threading::Async<bool>
54 OnSessionRequested(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool) /*override*/;
55
56 virtual ::Bedrock::Threading::Async<bool> OnSessionResponse(
57 ::NetherNet::NetworkID networkID,
58 uint64 sessionId,
59 ::std::string_view assertion,
60 ::std::string_view fingerprintJson,
61 bool isLan
62 ) /*override*/;
63
64 virtual void
65 OnSessionOpen(::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view, bool isLan) /*override*/;
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71#ifdef LL_PLAT_C
72 MCNAPI bool $closeSessionWithUser(::NetherNet::NetworkID remoteId, uint64 sessionId);
73
74 MCNAPI ::Social::GameConnectionInfo const& $getConnectedGameInfo() const;
75
77 ::std::optional<::Social::ResolvedExperienceInfo> const& resolvedExperienceInfo
78 );
79
80 MCNAPI bool $connect(
81 ::Social::GameConnectionInfo const& primaryConnection,
82 ::Social::GameConnectionInfo const& backupConnection,
83 ::std::shared_ptr<::NetherNet::IIdentityAssertionGenerator> identityGenerator
84 );
85
86 MCNAPI void $disconnect();
87
88 MCNAPI bool $isServer() const;
89
90 MCNAPI ::Bedrock::Threading::Async<bool>
91 $OnSessionRequested(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool);
92
93 MCNAPI ::Bedrock::Threading::Async<bool> $OnSessionResponse(
94 ::NetherNet::NetworkID networkID,
95 uint64 sessionId,
96 ::std::string_view assertion,
97 ::std::string_view fingerprintJson,
98 bool isLan
99 );
100
101 MCNAPI void $OnSessionOpen(::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view, bool isLan);
102#endif
103
104
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftableForConnector();
111
113
114 MCNAPI static void** $vftable();
115
117 // NOLINTEND
118};
MCAPI::Social::GameConnectionInfo const & $getConnectedGameInfo() const
MCAPI void $setConnectedResolvedExperienceInfo(::std::optional<::Social::ResolvedExperienceInfo > const &resolvedExperienceInfo)
Definition IIdentityAssertionGenerator.h:7
MCAPI ::Bedrock::Threading::Async< bool > $OnSessionResponse(::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, ::std::string_view fingerprintJson, bool isLan)
Definition GameConnectionInfo.h:24
static MCAPI void ** $vftable()
static MCAPI void ** $vftableForNetworkEnableDisableListener()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForConnector()
MCAPI bool $closeSessionWithUser(::NetherNet::NetworkID remoteId, uint64 sessionId)
MCAPI bool $connect(::Social::GameConnectionInfo const &primaryConnection, ::Social::GameConnectionInfo const &backupConnection, ::std::shared_ptr<::NetherNet::IIdentityAssertionGenerator > identityGenerator)
Definition NetworkID.h:17
Definition ResolvedExperienceInfo.h:7
Definition Alias.h:14