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; }
21namespace Social {
struct Nonce; }
51 ServerData& operator=(ServerData
const&);
52 ServerData(ServerData
const&);
71 NetherNetServerLocator& operator=(NetherNetServerLocator
const&);
72 NetherNetServerLocator(NetherNetServerLocator
const&);
73 NetherNetServerLocator();
78 virtual ~NetherNetServerLocator() =
default;
80 virtual void startAnnouncingServer(
81 ::std::string
const& playerName,
82 ::std::string
const& worldName,
86 bool isJoinableThroughServerScreen,
93 virtual void stopAnnouncingServer() ;
95 virtual void startServerDiscovery(
::PortPair ports) ;
97 virtual void stopServerDiscovery() ;
99 virtual ::std::vector<::PingedCompatibleServer> getServerList() const ;
101 virtual
void clearServerList() ;
103 virtual
void update() ;
109 MCNAPI NetherNetServerLocator(
111 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
117 MCNAPI
void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<
char const> responseData);
129 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
138 ::
std::
string const& playerName,
139 ::
std::
string const& worldName,
143 bool isJoinableThroughServerScreen,
147 ::Social::Nonce const& nonce
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, ::Social::Nonce const &nonce)
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 _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:19
Definition NetherNetConnector.h:29
Definition NetherNetServerLocator.h:32
Definition NetworkID.h:17
Definition PingedCompatibleServer.h:5
Definition ServerSupportedAuthenticationTypes.h:5