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>>
145 addSecondaryUserAsync(int, ::std::shared_ptr<::Options>, ::std::function<void(::Social::UserPlatformConnectionResult)>) /*override*/
146 ;
147
148 // vIndex: 48
149 virtual void tick(::IMinecraftGame&) /*override*/;
150
151 // vIndex: 49
152 virtual void updateMapping(bool, bool) /*override*/;
153
154 // vIndex: 13
155 virtual bool isPrimaryUserReady() /*override*/;
156
157 // vIndex: 14
158 virtual bool canAccessPlayScreen() /*override*/;
159
160 // vIndex: 15
161 virtual bool needToShowPlatformStoreConnectConfirmationScreen() /*override*/;
162
163 // vIndex: 16
164 virtual bool canAccessSettingsScreen() /*override*/;
165
166 // vIndex: 17
167 virtual bool canAccessAchievementsScreen() /*override*/;
168
169 // vIndex: 18
170 virtual bool canAccessSkinScreen() /*override*/;
171
172 // vIndex: 19
173 virtual bool canAccessStoreScreen() /*override*/;
174
175 // vIndex: 20
176 virtual bool canAccessRealmsPendingInvitesScreen() /*override*/;
177
178 // vIndex: 21
179 virtual bool canHandleInvites() /*override*/;
180
181 // vIndex: 22
182 virtual bool needPlatformConnectionBeforeXBLSignIn() /*override*/;
183
184 // vIndex: 23
185 virtual bool needPlatformConnectionForMultiplayer() const /*override*/;
186
187 // vIndex: 24
188 virtual bool needPlatformConnectionForSplitScreenMultiplayer() const /*override*/;
189
190 // vIndex: 25
191 virtual bool needPlatformConnectionBeforeServerSearch() const /*override*/;
192
193 // vIndex: 8
194 virtual bool canChangePrimaryUserFromStartMenuScreen() const /*override*/;
195
196 // vIndex: 64
197 virtual bool hasPlatformPremiumAccess() const;
198
199 // vIndex: 27
200 virtual bool hasPlatformIcons() const /*override*/;
201
202 // vIndex: 28
203 virtual bool hasPlatformProfileCards() const /*override*/;
204
205 // vIndex: 29
206 virtual void
207 getLinkedXuids(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) const
208 /*override*/;
209
210 // vIndex: 30
211 virtual void
212 getLinkedPlatformIds(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) const
213 /*override*/;
214
215 // vIndex: 40
216 virtual ::Bedrock::NotNullNonOwnerPtr<::ControllerIDtoClientMap> retrieveCIDToClientMap() /*override*/;
217
218 // vIndex: 41
219 virtual int getClientCID(::IClientInstance const&) const /*override*/;
220
221 // vIndex: 42
222 virtual void
223 registerSignOutListener(::Core::CallbackListeners<int, ::Social::SignInResult>::Listener const&) /*override*/;
224
225 // vIndex: 43
226 virtual void
227 registerSignInListener(::Core::CallbackListeners<int, ::Social::SignInResult>::Listener const&) /*override*/;
228
229 // vIndex: 44
230 virtual ::Bedrock::PubSub::Subscription
231 registerIdentitySignInCallback(::Social::IdentityType, ::std::function<void(uint, ::Social::IdentityType)>) /*override*/
232 ;
233
234 // vIndex: 45
235 virtual ::Bedrock::PubSub::Subscription
236 registerIdentitySignOutCallback(::Social::IdentityType, ::std::function<void(uint, ::Social::IdentityType)>) /*override*/
237 ;
238
239 // vIndex: 46
240 virtual ::Bedrock::PubSub::Subscription
241 registerProfileImageChangedCallback(::std::function<
242 void(::Social::ProfileImageOptions, ::std::shared_ptr<::mce::Image>)>) /*override*/
243 ;
244
245 // vIndex: 47
246 virtual bool needGamepadDisconnectScreen(int) /*override*/;
247
248 // vIndex: 31
249 virtual void onAppResumed() /*override*/;
250
251 // vIndex: 32
252 virtual void onAppSuspended() /*override*/;
253
254 // vIndex: 33
255 virtual void onAppFocusLost() /*override*/;
256
257 // vIndex: 11
258 virtual void forceCloudSaveOnWorld(::std::string const&) /*override*/;
259
260 // vIndex: 26
261 virtual bool needsAsyncUserSelection(int, bool) /*override*/;
262
263 // vIndex: 9
264 virtual void getAsyncUserSelection(::std::function<void(int)>, int) /*override*/;
265
266 // vIndex: 10
267 virtual void getAsyncUserSelectionForNewPrimaryUser(int, bool) /*override*/;
268
269 // vIndex: 12
270 virtual ::Core::Subject<::Social::UserListObserver, ::Core::SingleThreadedLock>& getUserListSubject() /*override*/;
271
272 // vIndex: 7
273 virtual bool controllerChanged(int&, int&) /*override*/;
274
275 // vIndex: 60
276 virtual void registerLevelLocationObserver(::ILevelListCache&) /*override*/;
277
278 // vIndex: 61
279 virtual ::Social::MultiplayerServiceObserver& getMultiplayerServiceObserver() /*override*/;
280
281 // vIndex: 62
282 virtual ::Social::MultiplayerServiceIdentifier getPlatformMultiplayerServiceIdentifier() const /*override*/;
283
284 // vIndex: 63
285 virtual bool willSyncUserDataStorage() const /*override*/;
286
287 // vIndex: 2
288 virtual void onLevelAdded(::std::string const&) /*override*/;
289
290 // vIndex: 3
291 virtual void onLevelUpdated(::std::string const&) /*override*/;
292
293 // vIndex: 4
294 virtual void onLevelDeleted(::std::string const&) /*override*/;
295
296 // vIndex: 65
297 virtual void _onAppResumed();
298
299 // vIndex: 66
300 virtual void _onAppSuspended();
301
302 // vIndex: 67
303 virtual ::std::shared_ptr<::Social::UserCreationData>
304 _prepareUserCreationData(::GameUserType, int, ::std::shared_ptr<::Options>, uint);
305
306 // vIndex: 68
307 virtual void _onUserAdded(::std::shared_ptr<::Social::User> const&);
308 // NOLINTEND
309
310public:
311 // destructor thunk
312 // NOLINTBEGIN
313
314 // NOLINTEND
315
316public:
317 // virtual function thunks
318 // NOLINTBEGIN
319
320 // NOLINTEND
321};
322
323} // namespace Social
Definition _HeaderOutputPredefine.h:220
Definition IClientInstance.h:179
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