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 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
59 NetworkWorldJoiner& operator=(NetworkWorldJoiner const&);
60 NetworkWorldJoiner(NetworkWorldJoiner const&);
61 NetworkWorldJoiner();
62
63public:
64 // member functions
65 // NOLINTBEGIN
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,
80 bool isEduMode,
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
86 );
87
88 MCFOLD ::std::string const getRealmErrorData();
89
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
94 );
95
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
100 );
101
102 MCAPI void joinRealmThroughWorldTransfer(
103 ::std::string const& realmIdString,
104 ::IMinecraftEventing::RealmConnectionFlow fromFlow
105 );
106
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>)>
112 onRealmFetched,
113 ::std::function<void(
114 ::IMinecraftEventing::RealmConnectionResult,
115 ::std::optional<::Realms::FailureReason>,
116 ::std::optional<::World::RealmsJoinData>
117 )> onRealmJoined
118 );
119
120 MCAPI void
121 joinRealmWorldWithRoute(::std::string const& realmIdString, ::IMinecraftEventing::RealmConnectionFlow fromFlow);
122
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
128 );
129
130 MCAPI ::Bedrock::PubSub::Subscription subscribeToJoinRealmWorldResultPublisher(
131 ::std::function<void(::World::JoinRealmWorldResult)> onJoinRealmWorldResult
132 );
133 // NOLINTEND
134
135public:
136 // static variables
137 // NOLINTBEGIN
138 MCAPI static ::std::add_lvalue_reference_t<char const[37]> REALM_JOIN_ROUTE();
139 // NOLINTEND
140
141public:
142 // constructor thunks
143 // NOLINTBEGIN
144 MCAPI void* $ctor(
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,
158 bool isEduMode,
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
164 );
165 // NOLINTEND
166};
167
168} // namespace World
Definition Subscription.h:10
Definition GatheringManager.h:5
Definition IAppPlatform.h:15
Definition IClientInstance.h:5
Definition IMinecraftEventing.h:147
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