31 ServerLocatorComposite& operator=(ServerLocatorComposite
const&);
32 ServerLocatorComposite(ServerLocatorComposite
const&);
33 ServerLocatorComposite();
38 virtual ~ServerLocatorComposite() =
default;
40 virtual void startAnnouncingServer(
41 ::std::string
const& playerName,
42 ::std::string
const& worldName,
43 ::GameType worldGameType,
46 bool isJoinableThroughServerScreen,
51 virtual void stopAnnouncingServer() ;
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() ;
84 MCNAPI ServerLocatorComposite(
85 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
96 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
107 ::std::string
const& playerName,
108 ::std::string
const& worldName,
109 ::GameType worldGameType,
112 bool isJoinableThroughServerScreen,
127 MCNAPI ::std::vector<::PingedCompatibleServer>
$getServerList()
const;
136 ::std::string hostIpAddress,
138 ::std::function<
void(::ServerConnectivityTestResult)> callback
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore)