3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/StubServerLocator.h"
8#include "mc/platform/threading/UniqueLock.h"
9#include "mc/world/level/GameType.h"
19namespace Bedrock::Threading {
class Mutex; }
49 ServerData& operator=(ServerData
const&);
50 ServerData(ServerData
const&);
69 NetherNetServerLocator& operator=(NetherNetServerLocator
const&);
70 NetherNetServerLocator(NetherNetServerLocator
const&);
71 NetherNetServerLocator();
76 virtual ~NetherNetServerLocator() ;
78 virtual void startAnnouncingServer(
79 ::std::string
const& playerName,
80 ::std::string
const& worldName,
84 bool isJoinableThroughServerScreen,
90 virtual void stopAnnouncingServer() ;
92 virtual void startServerDiscovery(
::PortPair ports) ;
94 virtual void stopServerDiscovery() ;
96 virtual ::std::vector<::PingedCompatibleServer> getServerList() const ;
98 virtual
void clearServerList() ;
100 virtual
void update() ;
106 MCNAPI NetherNetServerLocator(
108 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
114 MCNAPI
void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<
char const> responseData);
126 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
141 ::
std::
string const& playerName,
142 ::
std::
string const& worldName,
146 bool isJoinableThroughServerScreen,
MCAPI void $stopAnnouncingServer()
MCAPI void _onDiscoveryResponse(::NetherNet::NetworkID const &networkID, ::gsl::span< char const > responseData)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI void $clearServerList()
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore, ::ServerSupportedAuthenticationTypes supportedAuth)
MCAPI void _setDiscoveryRequestCallback(bool enable)
MCAPI void _cacheDiscoveryResponseData()
MCAPI void $stopServerDiscovery()
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector > &&connector, ::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService)
MCAPI void _setDiscoveryResponseCallback(bool enable)
Definition SignalingService.h:35
Definition StubServerLocator.h:18
Definition NetherNetConnector.h:28
Definition NetherNetServerLocator.h:31
Definition NetworkID.h:17
Definition PingedCompatibleServer.h:5
Definition ServerSupportedAuthenticationTypes.h:5