LeviLamina
Loading...
Searching...
No Matches
RemoteConnectorComposite.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/RakNetConnector.h"
8#include "mc/network/RakPeerHelper.h"
9#include "mc/network/RemoteConnector.h"
10#include "mc/network/TransportLayer.h"
11
12// auto generated forward declare list
13// clang-format off
14class AppPlatform;
18class RakNetConnector;
21namespace RakNet { struct RakPeerConfiguration; }
22namespace Social { class GameConnectionInfo; }
23// clang-format on
24
25class RemoteConnectorComposite : public ::RemoteConnector {
26public:
27 // member variables
28 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 RemoteConnectorComposite& operator=(RemoteConnectorComposite const&);
37 RemoteConnectorComposite(RemoteConnectorComposite const&);
38 RemoteConnectorComposite();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43#ifdef LL_PLAT_S
44 virtual ~RemoteConnectorComposite() /*override*/ = default;
45#else // LL_PLAT_C
46 virtual ~RemoteConnectorComposite() /*override*/;
47#endif
48
49#ifdef LL_PLAT_S
50 virtual void setDisableLanSignaling(bool) /*override*/;
51#else // LL_PLAT_C
52 virtual void setDisableLanSignaling(bool disableLanSignaling) /*override*/;
53#endif
54
55 virtual ::std::string getLocalIp() /*override*/;
56
57 virtual ushort getPort() const /*override*/;
58
59 virtual ::Social::GameConnectionInfo const& getConnectedGameInfo() const /*override*/;
60
61 virtual bool isIPv4Supported() const /*override*/;
62
63 virtual bool isIPv6Supported() const /*override*/;
64
65 virtual ushort getIPv4Port() const /*override*/;
66
67 virtual ushort getIPv6Port() const /*override*/;
68
69#ifdef LL_PLAT_S
70 virtual bool host(::ConnectionDefinition const&) /*override*/;
71#else // LL_PLAT_C
72 virtual bool host(::ConnectionDefinition const& definition) /*override*/;
73#endif
74
75#ifdef LL_PLAT_S
76 virtual bool connect(::Social::GameConnectionInfo const&, ::Social::GameConnectionInfo const&) /*override*/;
77#else // LL_PLAT_C
78 virtual bool connect(
79 ::Social::GameConnectionInfo const& primaryConnection,
80 ::Social::GameConnectionInfo const& backupConnection
81 ) /*override*/;
82#endif
83
84 virtual void disconnect() /*override*/;
85
86 virtual void tick() /*override*/;
87
88 virtual void runEvents() /*override*/;
89
90 virtual bool isServer() const /*override*/;
91
92#ifdef LL_PLAT_S
93 virtual void closeNetworkConnection(::NetworkIdentifier const&) /*override*/;
94#else // LL_PLAT_C
95 virtual void closeNetworkConnection(::NetworkIdentifier const& id) /*override*/;
96#endif
97
98#ifdef LL_PLAT_S
99 virtual bool setApplicationHandshakeCompleted(::NetworkIdentifier const&) /*override*/;
100#else // LL_PLAT_C
101 virtual bool setApplicationHandshakeCompleted(::NetworkIdentifier const& id) /*override*/;
102#endif
103
104 virtual ::NetworkIdentifier getNetworkIdentifier() const /*override*/;
105
106 virtual void _onDisable() /*override*/;
107
108 virtual void _onEnable() /*override*/;
109
110 virtual ::TransportLayer getNetworkType() const /*override*/;
111 // NOLINTEND
112
113public:
114 // member functions
115 // NOLINTBEGIN
116#ifdef LL_PLAT_C
117 MCNAPI RemoteConnectorComposite(
120 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner
121 );
122
123 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::RemoteConnector> getActiveConnector() const;
124
125 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector> getNetherNetConnector() const;
126
127 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::RakNetConnector> getRakNetConnector() const;
128
129 MCNAPI void initializeNetherNetConnector(::NetherNetTransportFactory const& transportFactory);
130
131 MCNAPI void initializeRakNetConnector(
134 ::RakNet::RakPeerConfiguration const& rakPeerConfig
135 );
136#endif
137 // NOLINTEND
138
139public:
140 // constructor thunks
141 // NOLINTBEGIN
142#ifdef LL_PLAT_C
143 MCNAPI void* $ctor(
146 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner
147 );
148#endif
149 // NOLINTEND
150
151public:
152 // destructor thunk
153 // NOLINTBEGIN
154 MCNAPI void $dtor();
155 // NOLINTEND
156
157public:
158 // virtual function thunks
159 // NOLINTBEGIN
160#ifdef LL_PLAT_C
161 MCNAPI void $setDisableLanSignaling(bool disableLanSignaling);
162
163 MCNAPI ::std::string $getLocalIp();
164
165 MCNAPI ushort $getPort() const;
166
167 MCNAPI ::Social::GameConnectionInfo const& $getConnectedGameInfo() const;
168
169 MCNAPI bool $isIPv4Supported() const;
170
171 MCNAPI bool $isIPv6Supported() const;
172
173 MCNAPI ushort $getIPv4Port() const;
174
175 MCNAPI ushort $getIPv6Port() const;
176
177 MCNAPI bool $host(::ConnectionDefinition const& definition);
178
179 MCNAPI bool $connect(
180 ::Social::GameConnectionInfo const& primaryConnection,
181 ::Social::GameConnectionInfo const& backupConnection
182 );
183
184 MCNAPI void $disconnect();
185
186 MCNAPI void $tick();
187
188 MCNAPI void $runEvents();
189
190 MCNAPI bool $isServer() const;
191
192 MCNAPI void $closeNetworkConnection(::NetworkIdentifier const& id);
193
194 MCNAPI bool $setApplicationHandshakeCompleted(::NetworkIdentifier const& id);
195
196 MCNAPI ::NetworkIdentifier $getNetworkIdentifier() const;
197
198 MCNAPI void $_onDisable();
199
200 MCNAPI void $_onEnable();
201
202 MCNAPI ::TransportLayer $getNetworkType() const;
203#endif
204
205
206 // NOLINTEND
207
208public:
209 // vftables
210 // NOLINTBEGIN
212
214
215 MCNAPI static void** $vftableForConnector();
216 // NOLINTEND
217};
Definition AppPlatform.h:91
Definition NonOwnerPointer.h:9
Definition NetherNetTransportFactory.h:18
Definition NetworkIdentifier.h:10
Definition NetworkSessionOwner.h:9
Definition RakNetConnector.h:29
Definition RakPeerHelper.h:35
static MCAPI void ** $vftableForConnector()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForNetworkEnableDisableListener()
Definition RemoteConnector.h:19
Definition GameConnectionInfo.h:23
Definition ConnectionDefinition.h:5
Definition NetherNetConnector.h:33
Definition RakNetConnector.h:39
Definition RakPeerConfiguration.h:7
Definition Alias.h:14