26 virtual void startAnnouncingServer(
27 ::std::string
const& playerName,
28 ::std::string
const& worldName,
32 bool isJoinableThroughServerScreen,
39 virtual void startAnnouncingServer(
40 ::std::string
const& playerName,
41 ::std::string
const& worldName,
42 ::GameType worldGameType,
45 bool isJoinableThroughServerScreen,
53 virtual void stopAnnouncingServer() ;
55 virtual void startServerDiscovery(
::PortPair ports) ;
59 virtual void stopServerDiscovery() ;
61 virtual ::std::vector<::PingedCompatibleServer> getServerList()
const ;
63 virtual void update() ;
66 virtual ::std::chrono::milliseconds getPingTimeForGUID(::std::string
const&) ;
68 virtual ::std::chrono::milliseconds getPingTimeForGUID(::std::string
const& guid) ;
72 virtual void checkCanConnectToCustomServerAsync(
75 ::std::function<
void(::ServerConnectivityTestResult)> callback
78 virtual void checkCanConnectToCustomServerAsync(
79 ::std::string hostIpAddress,
81 ::std::function<
void(::ServerConnectivityTestResult)> callback
92 ::std::string
const& playerName,
93 ::std::string
const& worldName,
97 bool isJoinableThroughServerScreen,
105 ::std::string
const& playerName,
106 ::std::string
const& worldName,
107 ::GameType worldGameType,
110 bool isJoinableThroughServerScreen,
140 ::std::function<
void(::ServerConnectivityTestResult)> callback
144 ::std::string hostIpAddress,
146 ::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, ::Social::Nonce const &nonce)