3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/network/realms/FailureReason.h"
7#include "mc/client/world/JoinRealmWorldResult.h"
8#include "mc/client/world/JoinServerWorldResult.h"
9#include "mc/client/world/RealmWorldJoiner.h"
10#include "mc/client/world/ServerURLResolver.h"
11#include "mc/client/world/ServerWorldJoiner.h"
12#include "mc/deps/core/utility/NonOwnerPointer.h"
13#include "mc/events/IMinecraftEventing.h"
25struct IThirdPartyServerRepository;
27namespace Network {
struct ServerID; }
28namespace Realms {
struct RealmId; }
43 ::ll::TypedStorage<8, 112, ::World::RealmWorldJoiner> mRealmWorldJoiner;
44 ::ll::TypedStorage<8, 192, ::World::ServerWorldJoiner> mServerWorldJoiner;
45 ::ll::TypedStorage<1, 8, ::World::ServerURLResolver> mServerURLResolver;
55 MCAPI NetworkWorldJoiner(
56 ::IClientInstance& client,
57 ::IGameServerShutdown& gameServerShutdown,
58 ::INetworkGameConnector& networkGameConnector,
59 ::IMinecraftEventing& minecraftEventing,
60 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager>
const& userManager,
61 ::Bedrock::NonOwnerPointer<::IAppPlatform>
const& appPlatform,
62 ::std::weak_ptr<::RealmsAPI> realmsAPI,
63 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
64 ::ServerLocator& serverLocator,
65 ::World::ExternalServerWorldList& externalServerWorldList,
66 ::World::FriendServerWorldList& friendServerWorldList,
67 ::World::LanServerWorldList& lanServerWorldList,
68 ::World::ThirdPartyWorldList& thirdPartyWorldList,
70 ::Bedrock::NotNullNonOwnerPtr<::GatheringManager>
const& gatheringManager
73 MCAPI
void joinExternalNetworkWorld(
74 ::std::string
const&
id,
75 ::std::function<
void(::std::unique_ptr<::ProgressHandler>,
bool)> onJoinServerCompleted,
76 ::std::function<
void(::World::JoinServerWorldResult)> onErrorCallback
79 MCAPI
void joinFriendServerWorld(
80 ::Network::ServerID
const& serverId,
81 ::std::function<
void(::World::JoinServerWorldResult)> onCompleteCallback
84 MCAPI
void joinLANServerWorld(
85 ::Network::ServerID
const& serverId,
86 ::std::function<
void(::std::unique_ptr<::ProgressHandler>)> onCompleteCallback,
87 ::std::function<
void(::World::JoinServerWorldResult)> onErrorCallback
90 MCAPI
void joinRealmWorld(
91 ::Realms::RealmId realmId,
92 ::IMinecraftEventing::RealmConnectionFlow fromFlow,
93 ::std::function<
void(::World::JoinRealmWorldResult)> onRealmResult,
94 ::std::function<
void(::std::unique_ptr<::ProgressHandler>, ::std::unique_ptr<::ProgressHandler>)>
97 ::IMinecraftEventing::RealmConnectionResult,
98 ::std::optional<::Realms::FailureReason>,
99 ::std::optional<::World::RealmsJoinData>
103 MCAPI
void joinThirdPartyServerWorld(
104 ::std::string
const&
id,
105 ::std::function<
void(::std::unique_ptr<::ProgressHandler>,
bool)> onJoinServerCompleted,
106 ::std::function<
void(::World::JoinServerWorldResult)> onErrorCallback
109 MCAPI ~NetworkWorldJoiner();
116 ::IClientInstance& client,
117 ::IGameServerShutdown& gameServerShutdown,
118 ::INetworkGameConnector& networkGameConnector,
119 ::IMinecraftEventing& minecraftEventing,
120 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager>
const& userManager,
121 ::Bedrock::NonOwnerPointer<::IAppPlatform>
const& appPlatform,
122 ::std::weak_ptr<::RealmsAPI> realmsAPI,
123 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
124 ::ServerLocator& serverLocator,
125 ::World::ExternalServerWorldList& externalServerWorldList,
126 ::World::FriendServerWorldList& friendServerWorldList,
127 ::World::LanServerWorldList& lanServerWorldList,
128 ::World::ThirdPartyWorldList& thirdPartyWorldList,
130 ::Bedrock::NotNullNonOwnerPtr<::GatheringManager>
const& gatheringManager
Definition IClientInstance.h:5
Definition IMinecraftEventing.h:137
Definition INetworkGameConnector.h:5
Definition ProgressHandler.h:5
Definition ServerLocator.h:19
Definition IUserManager.h:34
Definition ExternalServerWorldList.h:7
Definition FriendServerWorldList.h:7
Definition LanServerWorldList.h:7
Definition NetworkWorldJoiner.h:7
Definition ThirdPartyWorldList.h:7
Definition GatheringManager.h:5
Definition IGameServerShutdown.h:5
Definition RealmsJoinData.h:7