28class ServerLocatorComposite :
public ::StubServerLocator {
39 ServerLocatorComposite& operator=(ServerLocatorComposite
const&);
40 ServerLocatorComposite(ServerLocatorComposite
const&);
41 ServerLocatorComposite();
47 virtual ~ServerLocatorComposite() =
default;
49 virtual ~ServerLocatorComposite() ;
53 virtual void startAnnouncingServer(
65 virtual void startAnnouncingServer(
66 ::std::string
const& playerName,
67 ::std::string
const& worldName,
68 ::GameType worldGameType,
71 bool isJoinableThroughServerScreen,
78 virtual void stopAnnouncingServer() ;
81 virtual void startServerDiscovery(
::PortPair) ;
83 virtual void startServerDiscovery(
::PortPair ports) ;
86 virtual void stopServerDiscovery() ;
95 virtual void addCustomServer(::std::string
const&,
int) ;
97 virtual void addCustomServer(::std::string
const& address,
int port) ;
100 virtual ::std::vector<::PingedCompatibleServer> getServerList()
const ;
102 virtual void clearServerList() ;
104 virtual void update() ;
107 virtual float getPingTimeForGUID(::std::string
const&) ;
109 virtual float getPingTimeForGUID(::std::string
const& guid) ;
113 virtual void checkCanConnectToCustomServerAsync(
116 ::std::function<
void(::ServerConnectivityTestResult)>
119 virtual void checkCanConnectToCustomServerAsync(
120 ::std::string hostIpAddress,
122 ::std::function<
void(::ServerConnectivityTestResult)> callback
126 virtual void _onDisable() ;
128 virtual void _onEnable() ;
135 MCNAPI ServerLocatorComposite(
136 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
140 MCNAPI ::ServerLocator& _getActiveServerLocator();
142 MCNAPI
void initializeNetherNetServerLocator(
143 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
147 MCNAPI
void initializeRakNetServerLocator(
150 ::std::vector<::std::string> overrideBroadcastAddresses,
152 ::RakNetServerLANVisibility lanDiscoveryStatus,
153 ::PermissionLAN permissionLAN,
154 ::PermissionIPv6 permissionIPv6,
165 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
182 ::std::string
const& playerName,
183 ::std::string
const& worldName,
184 ::GameType worldGameType,
187 bool isJoinableThroughServerScreen,
203 MCNAPI ::std::vector<::PingedCompatibleServer>
$getServerList()
const;
212 ::std::string hostIpAddress,
214 ::std::function<
void(::ServerConnectivityTestResult)> callback
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)