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,
101 bool isJoinableThroughServerScreen,
106 virtual void stopAnnouncingServer() ;
108 virtual void startServerDiscovery(
::PortPair ports) ;
110 virtual void stopServerDiscovery() ;
112 virtual ::std::vector<::PingedCompatibleServer> getServerList() const ;
114 virtual
void clearServerList() ;
116 virtual
void update() ;
122 MCNAPI NetherNetServerLocator(
124 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
130 MCNAPI
void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<
char const> responseData);
153 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
168 ::
std::
string const& playerName,
169 ::
std::
string const& worldName,
173 bool isJoinableThroughServerScreen,
Definition BinaryStream.h:11
MCAPI void $stopAnnouncingServer()
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 $clearServerList()
MCAPI void _setDiscoveryRequestCallback(bool enable)
static MCAPI ::PingedCompatibleServer _transformFrom(::NetherNet::NetworkID const &networkID, ::NetherNetServerLocator::ServerData &&serverData)
MCAPI void _cacheDiscoveryResponseData()
MCAPI void $stopServerDiscovery()
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore)
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 ReadOnlyBinaryStream.h:8
Definition SignalingService.h:39
Definition StubServerLocator.h:17
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