LeviLamina
Loading...
Searching...
No Matches
ServerLocatorComposite.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/PermissionIPv6.h"
8#include "mc/network/PermissionLAN.h"
9#include "mc/network/RakNetServerLANVisibility.h"
10#include "mc/network/RakPeerHelper.h"
11#include "mc/network/ServerConnectivityTestResult.h"
12#include "mc/network/StubServerLocator.h"
13#include "mc/world/level/GameType.h"
14
15// auto generated forward declare list
16// clang-format off
17class AppPlatform;
20class RakNetConnector;
21class ServerLocator;
24struct PortPair;
26// clang-format on
27
28class ServerLocatorComposite : public ::StubServerLocator {
29public:
30 // member variables
31 // NOLINTBEGIN
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 ServerLocatorComposite& operator=(ServerLocatorComposite const&);
40 ServerLocatorComposite(ServerLocatorComposite const&);
41 ServerLocatorComposite();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46#ifdef LL_PLAT_S
47 virtual ~ServerLocatorComposite() /*override*/ = default;
48#else // LL_PLAT_C
49 virtual ~ServerLocatorComposite() /*override*/;
50#endif
51
52#ifdef LL_PLAT_S
53 virtual void startAnnouncingServer(
54 ::std::string const&,
55 ::std::string const&,
56 ::GameType,
57 int,
58 int,
59 bool,
60 bool,
61 bool,
63 ) /*override*/;
64#else // LL_PLAT_C
65 virtual void startAnnouncingServer(
66 ::std::string const& playerName,
67 ::std::string const& worldName,
68 ::GameType worldGameType,
69 int numPlayers,
70 int maxNumPlayers,
71 bool isJoinableThroughServerScreen,
72 bool isEditorWorld,
73 bool isHardcore,
75 ) /*override*/;
76#endif
77
78 virtual void stopAnnouncingServer() /*override*/;
79
80#ifdef LL_PLAT_S
81 virtual void startServerDiscovery(::PortPair) /*override*/;
82#else // LL_PLAT_C
83 virtual void startServerDiscovery(::PortPair ports) /*override*/;
84#endif
85
86 virtual void stopServerDiscovery() /*override*/;
87
88#ifdef LL_PLAT_S
89 virtual void addCustomServer(::AsynchronousIPResolver const&, int) /*override*/;
90#else // LL_PLAT_C
91 virtual void addCustomServer(::AsynchronousIPResolver const& futureIP, int port) /*override*/;
92#endif
93
94#ifdef LL_PLAT_S
95 virtual void addCustomServer(::std::string const&, int) /*override*/;
96#else // LL_PLAT_C
97 virtual void addCustomServer(::std::string const& address, int port) /*override*/;
98#endif
99
100 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
101
102 virtual void clearServerList() /*override*/;
103
104 virtual void update() /*override*/;
105
106#ifdef LL_PLAT_S
107 virtual float getPingTimeForGUID(::std::string const&) /*override*/;
108#else // LL_PLAT_C
109 virtual float getPingTimeForGUID(::std::string const& guid) /*override*/;
110#endif
111
112#ifdef LL_PLAT_S
113 virtual void checkCanConnectToCustomServerAsync(
114 ::std::string,
115 int,
116 ::std::function<void(::ServerConnectivityTestResult)>
117 ) /*override*/;
118#else // LL_PLAT_C
119 virtual void checkCanConnectToCustomServerAsync(
120 ::std::string hostIpAddress,
121 int port,
122 ::std::function<void(::ServerConnectivityTestResult)> callback
123 ) /*override*/;
124#endif
125
126 virtual void _onDisable() /*override*/;
127
128 virtual void _onEnable() /*override*/;
129 // NOLINTEND
130
131public:
132 // member functions
133 // NOLINTBEGIN
134#ifdef LL_PLAT_C
135 MCNAPI ServerLocatorComposite(
136 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
138 );
139
140 MCNAPI ::ServerLocator& _getActiveServerLocator();
141
142 MCNAPI void initializeNetherNetServerLocator(
143 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
145 );
146
147 MCNAPI void initializeRakNetServerLocator(
148 ::RakNetConnector& rakNetConnector,
150 ::std::vector<::std::string> overrideBroadcastAddresses,
151 bool isServer,
152 ::RakNetServerLANVisibility lanDiscoveryStatus,
153 ::PermissionLAN permissionLAN,
154 ::PermissionIPv6 permissionIPv6,
156 );
157#endif
158 // NOLINTEND
159
160public:
161 // constructor thunks
162 // NOLINTBEGIN
163#ifdef LL_PLAT_C
164 MCNAPI void* $ctor(
165 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
167 );
168#endif
169 // NOLINTEND
170
171public:
172 // destructor thunk
173 // NOLINTBEGIN
174 MCNAPI void $dtor();
175 // NOLINTEND
176
177public:
178 // virtual function thunks
179 // NOLINTBEGIN
180#ifdef LL_PLAT_C
181 MCNAPI void $startAnnouncingServer(
182 ::std::string const& playerName,
183 ::std::string const& worldName,
184 ::GameType worldGameType,
185 int numPlayers,
186 int maxNumPlayers,
187 bool isJoinableThroughServerScreen,
188 bool isEditorWorld,
189 bool isHardcore,
191 );
192
193 MCNAPI void $stopAnnouncingServer();
194
195 MCNAPI void $startServerDiscovery(::PortPair ports);
196
197 MCNAPI void $stopServerDiscovery();
198
199 MCNAPI void $addCustomServer(::AsynchronousIPResolver const& futureIP, int port);
200
201 MCNAPI void $addCustomServer(::std::string const& address, int port);
202
203 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
204
205 MCNAPI void $clearServerList();
206
207 MCNAPI void $update();
208
209 MCNAPI float $getPingTimeForGUID(::std::string const& guid);
210
212 ::std::string hostIpAddress,
213 int port,
214 ::std::function<void(::ServerConnectivityTestResult)> callback
215 );
216
217 MCNAPI void $_onDisable();
218
219 MCNAPI void $_onEnable();
220#endif
221
222
223 // NOLINTEND
224
225public:
226 // vftables
227 // NOLINTBEGIN
228 MCNAPI static void** $vftable();
229 // NOLINTEND
230};
Definition AppPlatform.h:91
Definition AsynchronousIPResolver.h:8
Definition NonOwnerPointer.h:9
Definition NetworkSessionOwner.h:9
Definition RakNetConnector.h:29
Definition RakPeerHelper.h:35
static MCAPI void ** $vftable()
Definition ServerLocator.h:19
MCAPI void $_onEnable()
MCAPI void $_onDisable()
MCAPI void $stopAnnouncingServer()
MCAPI void * $ctor(::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform)
MCAPI void $checkCanConnectToCustomServerAsync(::std::string hostIpAddress, int callback, ::std::function< void(::ServerConnectivityTestResult)>)
MCAPI void $addCustomServer(::AsynchronousIPResolver const &futureIP, int port)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType worldGameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore, ::ServerSupportedAuthenticationTypes supportedAuth)
MCAPI float $getPingTimeForGUID(::std::string const &guid)
MCAPI void $update()
MCAPI void $clearServerList()
MCAPI void $stopServerDiscovery()
Definition NetherNetConnector.h:33
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5
Definition ServerSupportedAuthenticationTypes.h:5
Definition Alias.h:14