3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/ServerConnectivityTestResult.h"
8#include "mc/network/StubServerLocator.h"
9#include "mc/world/level/GameType.h"
30 ServerLocatorComposite& operator=(ServerLocatorComposite
const&);
31 ServerLocatorComposite(ServerLocatorComposite
const&);
32 ServerLocatorComposite();
37 virtual ~ServerLocatorComposite() =
default;
39 virtual void startAnnouncingServer(
40 ::std::string
const& playerName,
41 ::std::string
const& worldName,
43 ::GameType worldGameType,
46 bool isJoinableThroughServerScreen,
53 virtual void startServerDiscovery(
::PortPair ports) ;
55 virtual void stopServerDiscovery() ;
59 virtual void addCustomServer(::std::string
const& address,
int port) ;
61 virtual ::std::vector<::PingedCompatibleServer> getServerList()
const ;
63 virtual void clearServerList() ;
65 virtual void update() ;
67 virtual float getPingTimeForGUID(::std::string
const& guid) ;
69 virtual void checkCanConnectToCustomServerAsync(
70 ::std::string hostIpAddress,
72 ::std::function<
void(::ServerConnectivityTestResult)> callback
75 virtual void _onDisable() ;
77 virtual void _onEnable() ;
85 ::std::string
const& playerName,
86 ::std::string
const& worldName,
88 ::GameType worldGameType,
91 bool isJoinableThroughServerScreen,
106 MCNAPI ::std::vector<::PingedCompatibleServer>
$getServerList()
const;
115 ::std::string hostIpAddress,
117 ::std::function<
void(::ServerConnectivityTestResult)> callback
Definition AsynchronousIPResolver.h:5
Definition NonOwnerPointer.h:9
static MCAPI void ** $vftable()
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore)
MCAPI void $checkCanConnectToCustomServerAsync(::std::string hostIpAddress, int port, ::std::function< void(::ServerConnectivityTestResult)> callback)
MCAPI void $addCustomServer(::AsynchronousIPResolver const &futureIP, int port)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI StubServerLocator()
MCAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform)
MCAPI float $getPingTimeForGUID(::std::string const &guid)
MCAPI void $clearServerList()
MCAPI void $stopServerDiscovery()
Definition PingedCompatibleServer.h:5