LeviLamina
Loading...
Searching...
No Matches
UserManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/options/PlayFabEnvironment.h"
7#include "mc/client/social/IUserManager.h"
8#include "mc/client/social/MultiplayerServiceIdentifier.h"
9#include "mc/client/social/UserPlatformConnectionResult.h"
10#include "mc/common/GameUserType.h"
11#include "mc/deps/core/threading/IAsyncResult.h"
12#include "mc/deps/core/utility/NonOwnerPointer.h"
13#include "mc/deps/core/utility/Subject.h"
14#include "mc/identity/IdentityType.h"
15#include "mc/platform/MultiplayerServiceObserver.h"
16#include "mc/world/level/LevelListCacheObserver.h"
17
18// auto generated forward declare list
19// clang-format off
20class IClientInstance;
21class ILevelListCache;
22class IMinecraftGame;
23class Options;
25namespace Bedrock::PubSub { class Subscription; }
26namespace Core { class SingleThreadedLock; }
27namespace Social { class ProfileImageOptions; }
28namespace Social { class User; }
29namespace Social { class UserListObserver; }
30namespace Social { class XboxLiveUser; }
31namespace Social { struct UserCreationData; }
32namespace mce { struct Image; }
33// clang-format on
34
35namespace Social {
36
40public:
41 // member variables
42 // NOLINTBEGIN
65 // NOLINTEND
66
67public:
68 // prevent constructor by default
69 UserManager& operator=(UserManager const&);
72
73public:
74 // virtual functions
75 // NOLINTBEGIN
76 // vIndex: 0
77 virtual ~UserManager() /*override*/ = default;
78
79 // vIndex: 34
80 virtual void removeUser(int, bool) /*override*/;
81
82 // vIndex: 35
83 virtual void removeClient(::std::shared_ptr<::IClientInstance> const&) /*override*/;
84
85 // vIndex: 36
86 virtual void setUserClient(int, ::std::shared_ptr<::IClientInstance> const&) /*override*/;
87
88 // vIndex: 37
89 virtual bool userHasClient(int) /*override*/;
90
91 // vIndex: 38
92 virtual ::Social::PlayFabEnvironment getEnvironment() const /*override*/;
93
94 // vIndex: 39
95 virtual ::std::string_view getPlayFabTitleId() const /*override*/;
96
97 // vIndex: 3
98 virtual ::std::shared_ptr<::Social::User> getPrimaryUser() const /*override*/;
99
100 // vIndex: 54
101 virtual ::std::shared_ptr<::Social::User> getUserFromUserId(uint) /*override*/;
102
103 // vIndex: 53
104 virtual ::std::shared_ptr<::Social::User const> const getUserFromUserId(uint) const /*override*/;
105
106 // vIndex: 52
107 virtual ::std::shared_ptr<::Social::User> getUserFromControllerId(int) const /*override*/;
108
109 // vIndex: 51
110 virtual ::std::shared_ptr<::Social::User> getUser(::IClientInstance const&) const /*override*/;
111
112 // vIndex: 50
113 virtual ::std::shared_ptr<::Social::User> getUser(::Social::XboxLiveUser const&) /*override*/;
114
115 // vIndex: 55
116 virtual ::GameUserType getUserTypeFromUserId(uint) const /*override*/;
117
118 // vIndex: 56
119 virtual bool isChatAllowedWhenBlockedByPlatform() const /*override*/;
120
121 // vIndex: 57
122 virtual ::std::vector<::std::shared_ptr<::Social::User>> const& getUsers() const /*override*/;
123
124 // vIndex: 58
125 virtual bool isUserSignedIn(uint) /*override*/;
126
127 // vIndex: 59
128 virtual bool isPrimaryUserInitialSignInInProgress() const /*override*/;
129
130 // vIndex: 1
131 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>>
132 createPrimaryUserAsync(::std::shared_ptr<::Options>) /*override*/;
133
134 // vIndex: 2
135 virtual void initPrimaryIdentity() /*override*/;
136
137 // vIndex: 4
138 virtual bool isSecondaryUserCreationAllowed(int) const /*override*/;
139
140 // vIndex: 5
141 virtual void setSecondaryUserCreationAllowed(int) /*override*/;
142
143 // vIndex: 6
144 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> addSecondaryUserAsync(
145 int,
146 ::std::shared_ptr<::Options>,
147 ::std::function<void(::Social::UserPlatformConnectionResult)>
148 ) /*override*/;
149
150 // vIndex: 48
151 virtual void tick(::IMinecraftGame&) /*override*/;
152
153 // vIndex: 49
154 virtual void updateMapping(bool, bool) /*override*/;
155
156 // vIndex: 13
157 virtual bool isPrimaryUserReady() /*override*/;
158
159 // vIndex: 14
160 virtual bool canAccessPlayScreen() /*override*/;
161
162 // vIndex: 15
163 virtual bool needToShowPlatformStoreConnectConfirmationScreen() /*override*/;
164
165 // vIndex: 16
166 virtual bool canAccessSettingsScreen() /*override*/;
167
168 // vIndex: 17
169 virtual bool canAccessAchievementsScreen() /*override*/;
170
171 // vIndex: 18
172 virtual bool canAccessSkinScreen() /*override*/;
173
174 // vIndex: 19
175 virtual bool canAccessStoreScreen() /*override*/;
176
177 // vIndex: 20
178 virtual bool canAccessRealmsPendingInvitesScreen() /*override*/;
179
180 // vIndex: 21
181 virtual bool canHandleInvites() /*override*/;
182
183 // vIndex: 22
184 virtual bool needPlatformConnectionBeforeXBLSignIn() /*override*/;
185
186 // vIndex: 23
187 virtual bool needPlatformConnectionForMultiplayer() const /*override*/;
188
189 // vIndex: 24
190 virtual bool needPlatformConnectionForSplitScreenMultiplayer() const /*override*/;
191
192 // vIndex: 25
193 virtual bool needPlatformConnectionBeforeServerSearch() const /*override*/;
194
195 // vIndex: 8
196 virtual bool canChangePrimaryUserFromStartMenuScreen() const /*override*/;
197
198 // vIndex: 64
199 virtual bool hasPlatformPremiumAccess() const;
200
201 // vIndex: 27
202 virtual bool hasPlatformIcons() const /*override*/;
203
204 // vIndex: 28
205 virtual bool hasPlatformProfileCards() const /*override*/;
206
207 // vIndex: 29
208 virtual void
209 getLinkedXuids(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) const
210 /*override*/;
211
212 // vIndex: 30
213 virtual void
214 getLinkedPlatformIds(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) const
215 /*override*/;
216
217 // vIndex: 40
218 virtual ::Bedrock::NotNullNonOwnerPtr<::ControllerIDtoClientMap> retrieveCIDToClientMap() /*override*/;
219
220 // vIndex: 41
221 virtual int getClientCID(::IClientInstance const&) const /*override*/;
222
223 // vIndex: 42
224 virtual void
225 registerSignOutListener(::Core::CallbackListeners<int, ::Social::SignInResult>::Listener const&) /*override*/;
226
227 // vIndex: 43
228 virtual void
229 registerSignInListener(::Core::CallbackListeners<int, ::Social::SignInResult>::Listener const&) /*override*/;
230
231 // vIndex: 44
232 virtual ::Bedrock::PubSub::Subscription registerIdentitySignInCallback(
233 ::Social::IdentityType,
234 ::std::function<void(uint, ::Social::IdentityType)>
235 ) /*override*/;
236
237 // vIndex: 45
238 virtual ::Bedrock::PubSub::Subscription registerIdentitySignOutCallback(
239 ::Social::IdentityType,
240 ::std::function<void(uint, ::Social::IdentityType)>
241 ) /*override*/;
242
243 // vIndex: 46
244 virtual ::Bedrock::PubSub::Subscription registerProfileImageChangedCallback(
245 ::std::function<void(::Social::ProfileImageOptions, ::std::shared_ptr<::mce::Image>)>
246 ) /*override*/;
247
248 // vIndex: 47
249 virtual bool needGamepadDisconnectScreen(int) /*override*/;
250
251 // vIndex: 31
252 virtual void onAppResumed() /*override*/;
253
254 // vIndex: 32
255 virtual void onAppSuspended() /*override*/;
256
257 // vIndex: 33
258 virtual void onAppFocusLost() /*override*/;
259
260 // vIndex: 11
261 virtual void forceCloudSaveOnWorld(::std::string const&) /*override*/;
262
263 // vIndex: 26
264 virtual bool needsAsyncUserSelection(int, bool) /*override*/;
265
266 // vIndex: 9
267 virtual void getAsyncUserSelection(::std::function<void(int)>, int) /*override*/;
268
269 // vIndex: 10
270 virtual void getAsyncUserSelectionForNewPrimaryUser(int, bool) /*override*/;
271
272 // vIndex: 12
273 virtual ::Core::Subject<::Social::UserListObserver, ::Core::SingleThreadedLock>& getUserListSubject() /*override*/;
274
275 // vIndex: 7
276 virtual bool controllerChanged(int&, int&) /*override*/;
277
278 // vIndex: 60
279 virtual void registerLevelLocationObserver(::ILevelListCache&) /*override*/;
280
281 // vIndex: 61
282 virtual ::Social::MultiplayerServiceObserver& getMultiplayerServiceObserver() /*override*/;
283
284 // vIndex: 62
285 virtual ::Social::MultiplayerServiceIdentifier getPlatformMultiplayerServiceIdentifier() const /*override*/;
286
287 // vIndex: 63
288 virtual bool willSyncUserDataStorage() const /*override*/;
289
290 // vIndex: 2
291 virtual void onLevelAdded(::std::string const&) /*override*/;
292
293 // vIndex: 3
294 virtual void onLevelUpdated(::std::string const&) /*override*/;
295
296 // vIndex: 4
297 virtual void onLevelDeleted(::std::string const&) /*override*/;
298
299 // vIndex: 65
300 virtual void _onAppResumed();
301
302 // vIndex: 66
303 virtual void _onAppSuspended();
304
305 // vIndex: 67
306 virtual ::std::shared_ptr<::Social::UserCreationData>
307 _prepareUserCreationData(::GameUserType, int, ::std::shared_ptr<::Options>, uint);
308
309 // vIndex: 68
310 virtual void _onUserAdded(::std::shared_ptr<::Social::User> const&);
311 // NOLINTEND
312
313public:
314 // virtual function thunks
315 // NOLINTBEGIN
316
317 // NOLINTEND
318};
319
320} // namespace Social
Definition _HeaderOutputPredefine.h:230
Definition IClientInstance.h:184
Definition ILevelListCache.h:27
Definition IMinecraftGame.h:164
Definition LevelListCacheObserver.h:13
Definition Options.h:32
Definition IUserManager.h:35
Definition MultiplayerServiceObserver.h:17
Definition ProfileImageOptions.h:7
Definition UserManager.h:39
Definition XboxLiveUser.h:7
Definition ControllerIDtoClientMap.h:8
Definition Alias.h:14