Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
RemoteConnector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/network/Connector.h"
8#include "mc/network/NetworkEnableDisableListener.h"
9#include "mc/platform/brstd/copyable_function.h"
10
11// auto generated forward declare list
12// clang-format off
16namespace NetherNet { class IIdentityAssertionGenerator; }
17namespace Social { class GameConnectionInfo; }
18// clang-format on
19
20class RemoteConnector : public ::Connector,
21 public ::NetworkEnableDisableListener,
23public:
24 // prevent constructor by default
25 RemoteConnector();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual bool host(::ConnectionDefinition const& definition, ::PrivateKeyManager const& keys) = 0;
31
32 virtual bool connect(
33 ::Social::GameConnectionInfo const& primaryConnection,
34 ::Social::GameConnectionInfo const& backupConnection,
35 ::std::shared_ptr<::NetherNet::IIdentityAssertionGenerator> identityGenerator
36 ) = 0;
37
38 virtual void disconnect() = 0;
39
40 virtual void tick() = 0;
41
42 virtual void runEvents() = 0;
43
44 virtual bool isServer() const = 0;
45
46 virtual void closeNetworkConnection(::NetworkIdentifier const& id) = 0;
47
48 virtual ::NetworkIdentifier getNetworkIdentifier() const = 0;
49
50 virtual bool setApplicationHandshakeCompleted(::NetworkIdentifier const& id) = 0;
51
52 virtual void setDisableLanSignaling(bool disableLanSignaling) = 0;
53
54 virtual ~RemoteConnector() /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
62 ::brstd::copyable_function<bool() const> isNetworkAllowed
63 );
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCNAPI void*
70 $ctor(::Connector::ConnectionCallbacks& callbacks, ::brstd::copyable_function<bool() const> isNetworkAllowed);
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCNAPI void $dtor();
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftableForConnector();
83
85
87 // NOLINTEND
88};
Definition EnableNonOwnerReferences.h:7
Definition IIdentityAssertionGenerator.h:7
Definition NetworkIdentifier.h:10
Definition PrivateKeyManager.h:10
static MCAPI void ** $vftableForEnableNonOwnerReferences()
MCAPI void * $ctor(::Connector::ConnectionCallbacks &callbacks, ::brstd::copyable_function< bool() const > isNetworkAllowed)
static MCAPI void ** $vftableForConnector()
static MCAPI void ** $vftableForNetworkEnableDisableListener()
MCAPI void $dtor()
MCAPI RemoteConnector(::Connector::ConnectionCallbacks &callbacks, ::brstd::copyable_function< bool() const > isNetworkAllowed)
Definition GameConnectionInfo.h:24
Definition copyable_function.h:8
Definition ConnectionDefinition.h:5
Definition Connector.h:27