3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/StubServerLocator.h"
8#include "mc/platform/Result.h"
9#include "mc/platform/threading/UniqueLock.h"
10#include "mc/world/level/GameType.h"
21namespace Bedrock::Threading {
class Mutex; }
50 ServerData& operator=(ServerData
const&);
51 ServerData(ServerData
const&);
86 NetherNetServerLocator& operator=(NetherNetServerLocator
const&);
87 NetherNetServerLocator(NetherNetServerLocator
const&);
88 NetherNetServerLocator();
93 virtual ~NetherNetServerLocator() ;
95 virtual void startAnnouncingServer(
96 ::std::string
const& playerName,
97 ::std::string
const& worldName,
102 bool isJoinableThroughServerScreen,
109 virtual void startServerDiscovery(
::PortPair ports) ;
111 virtual void stopServerDiscovery() ;
113 virtual ::std::vector<::PingedCompatibleServer> getServerList() const ;
115 virtual
void clearServerList() ;
117 virtual
void update() ;
123 MCNAPI NetherNetServerLocator(
130 MCNAPI
void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<
char const> responseData);
167 ::
std::
string const& playerName,
168 ::
std::
string const& worldName,
169 ::Bedrock::NonOwnerPointer<::
AppPlatform> appPlatform,
173 bool isJoinableThroughServerScreen,
Definition NonOwnerPointer.h:9
Definition BinaryStream.h:11
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore)
MCAPI void _onDiscoveryResponse(::NetherNet::NetworkID const &networkID, ::gsl::span< char const > responseData)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI void _setIsDiscovering(bool isDiscovering)
MCAPI void _setIsAnnouncing(bool isAnnouncing)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector > &&connector, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService)
MCAPI void $clearServerList()
MCAPI void _setDiscoveryRequestCallback(bool enable)
static MCAPI ::PingedCompatibleServer _transformFrom(::NetherNet::NetworkID const &networkID, ::NetherNetServerLocator::ServerData &&serverData)
MCAPI void _cacheDiscoveryResponseData()
MCAPI void $stopServerDiscovery()
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI void _setDiscoveryResponseCallback(bool enable)
MCAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform)
Definition ReadOnlyBinaryStream.h:8
Definition SignalingService.h:38
MCAPI StubServerLocator()
Definition NetherNetConnector.h:27
Definition NetherNetServerLocator.h:33
MCAPI void write(::BinaryStream &stream) const
MCAPI ::Bedrock::Result< void > read(::ReadOnlyBinaryStream &stream)
Definition NetworkID.h:17
Definition PingedCompatibleServer.h:5