Skip to content
LeviMC
English
AutoLightDark
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/deps/core/utility/pub_sub/Subscription.h"
15#include "mc/events/IMinecraftEventing.h"
16
17// auto generated forward declare list
18// clang-format off
20class IAppPlatform;
21class IClientInstance;
24class IThirdPartyServerRepository;
25class ProgressHandler;
26class RealmsAPI;
27class ServerLocator;
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, 8, ::IGameServerShutdown&> mGameServerShutdown;
50 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mRealmsWorldJoinerJoinRealmWorldResultSubscription;
51 ::ll::TypedStorage<8, 592, ::World::RealmWorldJoiner> mRealmWorldJoiner;
52 ::ll::TypedStorage<8, 328, ::World::ServerWorldJoiner> mServerWorldJoiner;
53 ::ll::TypedStorage<8, 8, ::World::ServerURLResolver> mServerURLResolver;
54 ::ll::TypedStorage<8, 8, ::World::ExternalServerWorldList&> mExternalServerWorldList;
55 ::ll::TypedStorage<8, 8, ::OreUI::Router&> mRouter;
56 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
57 // NOLINTEND
58
59public:
60 // prevent constructor by default
61 NetworkWorldJoiner& operator=(NetworkWorldJoiner const&);
62 NetworkWorldJoiner(NetworkWorldJoiner const&);
63 NetworkWorldJoiner();
64
65public:
66 // member functions
67 // NOLINTBEGIN
69 ::IClientInstance& client,
70 ::IGameServerShutdown& gameServerShutdown,
71 ::INetworkGameConnector& networkGameConnector,
72 ::IMinecraftEventing& minecraftEventing,
73 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager> const& userManager,
75 ::std::weak_ptr<::RealmsAPI> realmsAPI,
76 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
77 ::ServerLocator& serverLocator,
78 ::World::ExternalServerWorldList& externalServerWorldList,
79 ::World::FriendServerWorldList& friendServerWorldList,
80 ::World::LanServerWorldList& lanServerWorldList,
81 ::World::ThirdPartyWorldList& thirdPartyWorldList,
82 bool isEduMode,
83 ::Bedrock::NotNullNonOwnerPtr<::ExperienceSystemsManager> const& experienceSystemsManager,
84 ::ui::ProgressScreenNavigation progressScreenNavigation,
85 ::OreUI::Router& router,
86 ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider>()> getPartyProvider,
87 ::std::function<bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction
88 );
89
90 MCNAPI ::std::string const getRealmErrorData();
91
93 ::std::string const& id,
94 ::std::function<void(::std::deque<::std::unique_ptr<::ProgressHandler>>, bool)> onJoinServerCompleted,
95 ::std::function<void(::World::JoinServerWorldResult)> onErrorCallback
96 );
97
98 MCNAPI void joinLANServerWorld(
99 ::Network::ServerID const& serverId,
100 ::std::function<void(::std::unique_ptr<::ProgressHandler>)> onCompleteCallback,
101 ::std::function<void(::World::JoinServerWorldResult)> onErrorCallback
102 );
103
105 ::std::string const& realmIdString,
106 ::IMinecraftEventing::RealmConnectionFlow fromFlow
107 );
108
109 MCNAPI void joinRealmWorld(
110 ::Realms::RealmId realmId,
111 ::IMinecraftEventing::RealmConnectionFlow fromFlow,
112 ::std::function<void(::World::JoinRealmWorldResult)> onRealmResult,
113 ::std::function<void(::std::unique_ptr<::ProgressHandler>, ::std::unique_ptr<::ProgressHandler>)>
114 onRealmFetched,
115 ::std::function<void(
116 ::IMinecraftEventing::RealmConnectionResult,
117 ::std::optional<::Realms::FailureReason>,
118 ::std::optional<::World::RealmsJoinData>
119 )> onRealmJoined
120 );
121
122 MCNAPI void
123 joinRealmWorldWithRoute(::std::string const& realmIdString, ::IMinecraftEventing::RealmConnectionFlow fromFlow);
124
126 ::std::string const& id,
127 ::std::function<void(::std::deque<::std::unique_ptr<::ProgressHandler>>, bool)> onJoinServerCompleted,
128 ::std::function<void(::World::JoinServerWorldResult)> onErrorCallback,
129 ::std::function<void()> onJoinServerCancelled
130 );
131
132 MCNAPI ::Bedrock::PubSub::Subscription subscribeToJoinRealmWorldResultPublisher(
133 ::std::function<void(::World::JoinRealmWorldResult)> onJoinRealmWorldResult
134 );
135 // NOLINTEND
136
137public:
138 // static variables
139 // NOLINTBEGIN
140 MCNAPI static ::std::add_lvalue_reference_t<char const[37]> REALM_JOIN_ROUTE();
141 // NOLINTEND
142
143public:
144 // constructor thunks
145 // NOLINTBEGIN
146 MCNAPI void* $ctor(
147 ::IClientInstance& client,
148 ::IGameServerShutdown& gameServerShutdown,
149 ::INetworkGameConnector& networkGameConnector,
150 ::IMinecraftEventing& minecraftEventing,
151 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager> const& userManager,
153 ::std::weak_ptr<::RealmsAPI> realmsAPI,
154 ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository> thirdPartyServerRepository,
155 ::ServerLocator& serverLocator,
156 ::World::ExternalServerWorldList& externalServerWorldList,
157 ::World::FriendServerWorldList& friendServerWorldList,
158 ::World::LanServerWorldList& lanServerWorldList,
159 ::World::ThirdPartyWorldList& thirdPartyWorldList,
160 bool isEduMode,
161 ::Bedrock::NotNullNonOwnerPtr<::ExperienceSystemsManager> const& experienceSystemsManager,
162 ::ui::ProgressScreenNavigation progressScreenNavigation,
163 ::OreUI::Router& router,
164 ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider>()> getPartyProvider,
165 ::std::function<bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction
166 );
167 // NOLINTEND
168};
169
170} // namespace World
Definition NonOwnerPointer.h:9
Definition ExperienceSystemsManager.h:5
Definition IAppPlatform.h:15
Definition IClientInstance.h:5
Definition IMinecraftEventing.h:152
Definition INetworkGameConnector.h:5
Definition Router.h:7
Definition IPartyProvider.h:7
Definition ProgressHandler.h:5
Definition RealmsAPI.h:5
Definition ServerLocator.h:22
Definition IUserManager.h:7
Definition ExternalServerWorldList.h:7
Definition FriendServerWorldList.h:7
Definition LanServerWorldList.h:7
Definition NetworkWorldJoiner.h:7
MCAPI void * $ctor(::IClientInstance &client, ::IGameServerShutdown &gameServerShutdown, ::INetworkGameConnector &networkGameConnector, ::IMinecraftEventing &minecraftEventing, ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager > const &userManager, ::Bedrock::NonOwnerPointer<::IAppPlatform > const &appPlatform, ::std::weak_ptr<::RealmsAPI > realmsAPI, ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository > thirdPartyServerRepository, ::ServerLocator &serverLocator, ::World::ExternalServerWorldList &externalServerWorldList, ::World::FriendServerWorldList &friendServerWorldList, ::World::LanServerWorldList &lanServerWorldList, ::World::ThirdPartyWorldList &thirdPartyWorldList, bool isEduMode, ::Bedrock::NotNullNonOwnerPtr<::ExperienceSystemsManager > const &experienceSystemsManager, ::ui::ProgressScreenNavigation progressScreenNavigation, ::OreUI::Router &router, ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider >()> getPartyProvider, ::std::function< bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction)
MCAPI void joinThirdPartyServerWorld(::std::string const &id, ::std::function< void(::std::deque<::std::unique_ptr<::ProgressHandler > >, bool)> onJoinServerCompleted, ::std::function< void(::World::JoinServerWorldResult)> onErrorCallback, ::std::function< void()> onJoinServerCancelled)
MCAPI void joinRealmThroughWorldTransfer(::std::string const &realmIdString, ::IMinecraftEventing::RealmConnectionFlow fromFlow)
MCAPI void joinLANServerWorld(::Network::ServerID const &serverId, ::std::function< void(::std::unique_ptr<::ProgressHandler >)> onCompleteCallback, ::std::function< void(::World::JoinServerWorldResult)> onErrorCallback)
MCAPI void joinExternalNetworkWorld(::std::string const &id, ::std::function< void(::std::deque<::std::unique_ptr<::ProgressHandler > >, bool)> onJoinServerCompleted, ::std::function< void(::World::JoinServerWorldResult)> onErrorCallback)
MCAPI void joinRealmWorld(::Realms::RealmId realmId, ::IMinecraftEventing::RealmConnectionFlow fromFlow, ::std::function< void(::World::JoinRealmWorldResult)> onRealmResult, ::std::function< void(::std::unique_ptr<::ProgressHandler >, ::std::unique_ptr<::ProgressHandler >)> onRealmFetched, ::std::function< void(::IMinecraftEventing::RealmConnectionResult, ::std::optional<::Realms::FailureReason >, ::std::optional<::World::RealmsJoinData >)> onRealmJoined)
MCAPI::std::string const getRealmErrorData()
MCAPI NetworkWorldJoiner(::IClientInstance &client, ::IGameServerShutdown &gameServerShutdown, ::INetworkGameConnector &networkGameConnector, ::IMinecraftEventing &minecraftEventing, ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager > const &userManager, ::Bedrock::NonOwnerPointer<::IAppPlatform > const &appPlatform, ::std::weak_ptr<::RealmsAPI > realmsAPI, ::Bedrock::NotNullNonOwnerPtr<::IThirdPartyServerRepository > thirdPartyServerRepository, ::ServerLocator &serverLocator, ::World::ExternalServerWorldList &externalServerWorldList, ::World::FriendServerWorldList &friendServerWorldList, ::World::LanServerWorldList &lanServerWorldList, ::World::ThirdPartyWorldList &thirdPartyWorldList, bool isEduMode, ::Bedrock::NotNullNonOwnerPtr<::ExperienceSystemsManager > const &experienceSystemsManager, ::ui::ProgressScreenNavigation progressScreenNavigation, ::OreUI::Router &router, ::std::function<::Bedrock::NonOwnerPointer<::Parties::IPartyProvider >()> getPartyProvider, ::std::function< bool(::Realms::World, ::Realms::PlayerRoleActions)> canUserDoRealmRoleAction)
MCAPI::Bedrock::PubSub::Subscription subscribeToJoinRealmWorldResultPublisher(::std::function< void(::World::JoinRealmWorldResult)> onJoinRealmWorldResult)
static MCAPI ::std::add_lvalue_reference_t< char const[37]> REALM_JOIN_ROUTE()
MCAPI void joinRealmWorldWithRoute(::std::string const &realmIdString, ::IMinecraftEventing::RealmConnectionFlow fromFlow)
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