3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/network/realms/FailureReason.h"
7#include "mc/client/realms/PlayerRoleActions.h"
8#include "mc/client/world/JoinRealmWorldResult.h"
9#include "mc/client/world/JoinServerWorldResult.h"
10#include "mc/client/world/RealmWorldJoiner.h"
11#include "mc/client/world/ServerURLResolver.h"
12#include "mc/client/world/ServerWorldJoiner.h"
13#include "mc/deps/core/utility/NonOwnerPointer.h"
14#include "mc/events/IMinecraftEventing.h"
23class IThirdPartyServerRepository;
29namespace Network {
struct ServerID; }
30namespace OreUI {
class Router; }
32namespace Realms {
struct RealmId; }
33namespace Realms {
struct World; }
49 ::ll::TypedStorage<8, 528, ::World::RealmWorldJoiner> mRealmWorldJoiner;
50 ::ll::TypedStorage<8, 264, ::World::ServerWorldJoiner> mServerWorldJoiner;
51 ::ll::TypedStorage<8, 8, ::World::ServerURLResolver> mServerURLResolver;
52 ::ll::TypedStorage<8, 8, ::World::ExternalServerWorldList&> mExternalServerWorldList;
53 ::ll::TypedStorage<8, 8, ::OreUI::Router&> mRouter;
54 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
59 NetworkWorldJoiner& operator=(NetworkWorldJoiner
const&);
60 NetworkWorldJoiner(NetworkWorldJoiner
const&);
66 MCAPI NetworkWorldJoiner(
67 ::IClientInstance& client,
68 ::IGameServerShutdown& gameServerShutdown,
69 ::INetworkGameConnector& networkGameConnector,
70 ::IMinecraftEventing& minecraftEventing,
71 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager>
const& userManager,
72 ::Bedrock::NonOwnerPointer<::IAppPlatform>
const& appPlatform,
73 ::std::weak_ptr<::RealmsAPI> realmsAPI,
74 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
75 ::ServerLocator& serverLocator,
76 ::World::ExternalServerWorldList& externalServerWorldList,
77 ::World::FriendServerWorldList& friendServerWorldList,
78 ::World::LanServerWorldList& lanServerWorldList,
79 ::World::ThirdPartyWorldList& thirdPartyWorldList,
81 ::Bedrock::NotNullNonOwnerPtr<::GatheringManager>
const& gatheringManager,
82 ::ui::ProgressScreenNavigation progressScreenNavigation,
83 ::OreUI::Router& router,
84 ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider>()> getPartyProvider,
85 ::std::function<
bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction
88 MCFOLD ::std::string
const getRealmErrorData();
90 MCAPI
void joinExternalNetworkWorld(
91 ::std::string
const&
id,
92 ::std::function<
void(::std::deque<::std::unique_ptr<::ProgressHandler>>,
bool)> onJoinServerCompleted,
93 ::std::function<
void(::World::JoinServerWorldResult)> onErrorCallback
96 MCAPI
void joinLANServerWorld(
97 ::Network::ServerID
const& serverId,
98 ::std::function<
void(::std::unique_ptr<::ProgressHandler>)> onCompleteCallback,
99 ::std::function<
void(::World::JoinServerWorldResult)> onErrorCallback
102 MCAPI
void joinRealmThroughWorldTransfer(
103 ::std::string
const& realmIdString,
104 ::IMinecraftEventing::RealmConnectionFlow fromFlow
107 MCAPI
void joinRealmWorld(
108 ::Realms::RealmId realmId,
109 ::IMinecraftEventing::RealmConnectionFlow fromFlow,
110 ::std::function<
void(::World::JoinRealmWorldResult)> onRealmResult,
111 ::std::function<
void(::std::unique_ptr<::ProgressHandler>, ::std::unique_ptr<::ProgressHandler>)>
113 ::std::function<
void(
114 ::IMinecraftEventing::RealmConnectionResult,
115 ::std::optional<::Realms::FailureReason>,
116 ::std::optional<::World::RealmsJoinData>
121 joinRealmWorldWithRoute(::std::string
const& realmIdString, ::IMinecraftEventing::RealmConnectionFlow fromFlow);
123 MCAPI
void joinThirdPartyServerWorld(
124 ::std::string
const&
id,
125 ::std::function<
void(::std::deque<::std::unique_ptr<::ProgressHandler>>,
bool)> onJoinServerCompleted,
126 ::std::function<
void(::World::JoinServerWorldResult)> onErrorCallback,
127 ::std::function<
void()> onJoinServerCancelled
130 MCAPI ::Bedrock::PubSub::Subscription subscribeToJoinRealmWorldResultPublisher(
131 ::std::function<
void(::World::JoinRealmWorldResult)> onJoinRealmWorldResult
138 MCAPI static ::std::add_lvalue_reference_t<char const[37]> REALM_JOIN_ROUTE();
145 ::IClientInstance& client,
146 ::IGameServerShutdown& gameServerShutdown,
147 ::INetworkGameConnector& networkGameConnector,
148 ::IMinecraftEventing& minecraftEventing,
149 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager>
const& userManager,
150 ::Bedrock::NonOwnerPointer<::IAppPlatform>
const& appPlatform,
151 ::std::weak_ptr<::RealmsAPI> realmsAPI,
152 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
153 ::ServerLocator& serverLocator,
154 ::World::ExternalServerWorldList& externalServerWorldList,
155 ::World::FriendServerWorldList& friendServerWorldList,
156 ::World::LanServerWorldList& lanServerWorldList,
157 ::World::ThirdPartyWorldList& thirdPartyWorldList,
159 ::Bedrock::NotNullNonOwnerPtr<::GatheringManager>
const& gatheringManager,
160 ::ui::ProgressScreenNavigation progressScreenNavigation,
161 ::OreUI::Router& router,
162 ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider>()> getPartyProvider,
163 ::std::function<
bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction
Definition Subscription.h:10
Definition GatheringManager.h:5
Definition IClientInstance.h:5
Definition IMinecraftEventing.h:147
Definition INetworkGameConnector.h:5
Definition IPartyProvider.h:7
Definition ProgressHandler.h:5
Definition ServerLocator.h:20
Definition IUserManager.h:7
Definition ExternalServerWorldList.h:7
Definition FriendServerWorldList.h:7
Definition LanServerWorldList.h:7
Definition NetworkWorldJoiner.h:7
Definition ThirdPartyWorldList.h:7
Definition ProgressScreenNavigation.h:7
Definition IGameServerShutdown.h:5
Definition RealmsJoinData.h:7