43 ServerLocatorComposite& operator=(ServerLocatorComposite
const&);
44 ServerLocatorComposite(ServerLocatorComposite
const&);
45 ServerLocatorComposite();
50 virtual ~ServerLocatorComposite() =
default;
52 virtual void startAnnouncingServer(
53 ::std::string
const& playerName,
54 ::std::string
const& worldName,
55 ::GameType worldGameType,
58 bool isJoinableThroughServerScreen,
65 virtual void stopAnnouncingServer() ;
67 virtual void startServerDiscovery(
::PortPair ports) ;
69 virtual void stopServerDiscovery() ;
73 virtual ::Bedrock::PubSub::Subscription acquireHttpProbePermission() ;
75 virtual ::std::vector<::PingedCompatibleServer> getServerList()
const ;
77 virtual ::std::shared_ptr<::TransportEndpointCache> getTransportEndpointCache()
const ;
79 virtual void update() ;
81 virtual ::std::chrono::milliseconds getPingTimeForGUID(::std::string
const& guid) ;
83 virtual void checkCanConnectToCustomServerAsync(
84 ::std::string hostIpAddress,
86 ::std::function<
void(::ServerConnectivityTestResult)> callback
89 virtual void _onDisable() ;
91 virtual void _onEnable() ;
98 MCNAPI ServerLocatorComposite(
99 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
103 MCNAPI
void initializeNetherNetServerLocator(
104 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
106 ::Bedrock::NotNullNonOwnerPtr<::Bedrock::Http::DispatcherInterface> dispatcher
109 MCNAPI
void initializeRakNetServerLocator(
112 ::std::vector<::std::string> overrideBroadcastAddresses,
114 ::RakNetServerLANVisibility lanDiscoveryStatus,
115 ::PermissionLAN permissionLAN,
116 ::PermissionIPv6 permissionIPv6,
127 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
138 ::std::string
const& playerName,
139 ::std::string
const& worldName,
140 ::GameType worldGameType,
143 bool isJoinableThroughServerScreen,
160 MCNAPI ::std::vector<::PingedCompatibleServer>
$getServerList()
const;
169 ::std::string hostIpAddress,
171 ::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)