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"
20namespace Bedrock::Threading {
class Mutex; }
21namespace NetherNet {
struct NetworkID; }
93 virtual void startAnnouncingServer(
94 ::std::string
const& playerName,
95 ::std::string
const& worldName,
100 bool isJoinableThroughServerScreen,
109 virtual void startServerDiscovery(
::PortPair ports) ;
112 virtual void stopServerDiscovery() ;
115 virtual ::std::vector<::PingedCompatibleServer> getServerList() const ;
118 virtual
void clearServerList() ;
121 virtual
void update() ;
129 MCNAPI
void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<
char const> responseData);
153 ::
std::
string const& playerName,
154 ::
std::
string const& worldName,
155 ::Bedrock::NonOwnerPointer<::
AppPlatform> appPlatform,
159 bool isJoinableThroughServerScreen,
Definition NonOwnerPointer.h:9
Definition BinaryStream.h:10
Definition NetherNetServerLocator.h:24
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 _setIsAnnouncing(bool isAnnouncing)
static MCAPI void ** $vftable()
MCAPI void $clearServerList()
MCAPI void setNetherNetConnector(::Bedrock::NonOwnerPointer<::NetherNetConnector > &&connector)
static MCAPI ::PingedCompatibleServer _transformFrom(::NetherNet::NetworkID const &networkID, ::NetherNetServerLocator::ServerData &&serverData)
MCAPI void $stopServerDiscovery()
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI void _cacheDiscoveryResponseData(::NetherNetServerLocator::ServerData const &serverData)
MCAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform)
Definition ReadOnlyBinaryStream.h:8
Definition StubServerLocator.h:19
Definition NetherNetConnector.h:23
Definition NetherNetServerLocator.h:32
MCAPI void write(::BinaryStream &stream) const
MCAPI ::Bedrock::Result< void > read(::ReadOnlyBinaryStream &stream)
Definition PingedCompatibleServer.h:5