LeviLamina
Loading...
Searching...
No Matches
NetworkWorldJoiner.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
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"
15
16// auto generated forward declare list
17// clang-format off
19class IAppPlatform;
20class IClientInstance;
23class IThirdPartyServerRepository;
24class ProgressHandler;
25class RealmsAPI;
26class ServerLocator;
28namespace Bedrock::PubSub { class Subscription; }
29namespace Network { struct ServerID; }
30namespace OreUI { class Router; }
31namespace Parties { class IPartyProvider; }
32namespace Realms { struct RealmId; }
33namespace Realms { struct World; }
34namespace Social { class IUserManager; }
35namespace World { class ExternalServerWorldList; }
36namespace World { class FriendServerWorldList; }
37namespace World { class LanServerWorldList; }
38namespace World { class ThirdPartyWorldList; }
39namespace World { struct RealmsJoinData; }
40namespace ui { class ProgressScreenNavigation; }
41// clang-format on
42
43namespace World {
44
46public:
47 // member variables
48 // NOLINTBEGIN
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 // NOLINTEND
55
56public:
57 // prevent constructor by default
58 NetworkWorldJoiner& operator=(NetworkWorldJoiner const&);
59 NetworkWorldJoiner(NetworkWorldJoiner const&);
60 NetworkWorldJoiner();
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI NetworkWorldJoiner(
66 ::IClientInstance& client,
67 ::IGameServerShutdown& gameServerShutdown,
68 ::INetworkGameConnector& networkGameConnector,
69 ::IMinecraftEventing& minecraftEventing,
70 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager> const& userManager,
71 ::Bedrock::NonOwnerPointer<::IAppPlatform> const& appPlatform,
72 ::std::weak_ptr<::RealmsAPI> realmsAPI,
73 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
74 ::ServerLocator& serverLocator,
75 ::World::ExternalServerWorldList& externalServerWorldList,
76 ::World::FriendServerWorldList& friendServerWorldList,
77 ::World::LanServerWorldList& lanServerWorldList,
78 ::World::ThirdPartyWorldList& thirdPartyWorldList,
79 bool isEduMode,
80 ::Bedrock::NotNullNonOwnerPtr<::GatheringManager> const& gatheringManager,
81 ::ui::ProgressScreenNavigation progressScreenNavigation,
82 ::OreUI::Router& router,
83 ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider>()> getPartyProvider,
84 ::std::function<bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction
85 );
86
87 MCFOLD ::std::string const getRealmErrorData();
88
89 MCAPI void joinExternalNetworkWorld(
90 ::std::string const& id,
91 ::std::function<void(::std::deque<::std::unique_ptr<::ProgressHandler>>, bool)> onJoinServerCompleted,
92 ::std::function<void(::World::JoinServerWorldResult)> onErrorCallback
93 );
94
95 MCAPI void joinLANServerWorld(
96 ::Network::ServerID const& serverId,
97 ::std::function<void(::std::unique_ptr<::ProgressHandler>)> onCompleteCallback,
98 ::std::function<void(::World::JoinServerWorldResult)> onErrorCallback
99 );
100
101 MCAPI void joinRealmWorld(
102 ::Realms::RealmId realmId,
103 ::IMinecraftEventing::RealmConnectionFlow fromFlow,
104 ::std::function<void(::World::JoinRealmWorldResult)> onRealmResult,
105 ::std::function<void(::std::unique_ptr<::ProgressHandler>, ::std::unique_ptr<::ProgressHandler>)>
106 onRealmFetched,
107 ::std::function<void(
108 ::IMinecraftEventing::RealmConnectionResult,
109 ::std::optional<::Realms::FailureReason>,
110 ::std::optional<::World::RealmsJoinData>
111 )> onRealmJoined
112 );
113
114 MCAPI void
115 joinRealmWorldWithRoute(::std::string const& realmIdString, ::IMinecraftEventing::RealmConnectionFlow fromFlow);
116
117 MCAPI void joinThirdPartyServerWorld(
118 ::std::string const& id,
119 ::std::function<void(::std::deque<::std::unique_ptr<::ProgressHandler>>, bool)> onJoinServerCompleted,
120 ::std::function<void(::World::JoinServerWorldResult)> onErrorCallback,
121 ::std::function<void()> onJoinServerCancelled
122 );
123
124 MCAPI ::Bedrock::PubSub::Subscription subscribeToJoinRealmWorldResultPublisher(
125 ::std::function<void(::World::JoinRealmWorldResult)> onJoinRealmWorldResult
126 );
127 // NOLINTEND
128
129public:
130 // static variables
131 // NOLINTBEGIN
132 MCAPI static ::std::add_lvalue_reference_t<char const[37]> REALM_JOIN_ROUTE();
133 // NOLINTEND
134
135public:
136 // constructor thunks
137 // NOLINTBEGIN
138 MCAPI void* $ctor(
139 ::IClientInstance& client,
140 ::IGameServerShutdown& gameServerShutdown,
141 ::INetworkGameConnector& networkGameConnector,
142 ::IMinecraftEventing& minecraftEventing,
143 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager> const& userManager,
144 ::Bedrock::NonOwnerPointer<::IAppPlatform> const& appPlatform,
145 ::std::weak_ptr<::RealmsAPI> realmsAPI,
146 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
147 ::ServerLocator& serverLocator,
148 ::World::ExternalServerWorldList& externalServerWorldList,
149 ::World::FriendServerWorldList& friendServerWorldList,
150 ::World::LanServerWorldList& lanServerWorldList,
151 ::World::ThirdPartyWorldList& thirdPartyWorldList,
152 bool isEduMode,
153 ::Bedrock::NotNullNonOwnerPtr<::GatheringManager> const& gatheringManager,
154 ::ui::ProgressScreenNavigation progressScreenNavigation,
155 ::OreUI::Router& router,
156 ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider>()> getPartyProvider,
157 ::std::function<bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction
158 );
159 // NOLINTEND
160};
161
162} // namespace World
Definition Subscription.h:10
Definition GatheringManager.h:5
Definition IAppPlatform.h:15
Definition IClientInstance.h:5
Definition IMinecraftEventing.h:145
Definition INetworkGameConnector.h:5
Definition Router.h:7
Definition IPartyProvider.h:7
Definition ProgressHandler.h:5
Definition RealmsAPI.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 ServerID.h:7
Definition RealmId.h:7
Definition World.h:7
Definition RealmsJoinData.h:7