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/social/IUserManager.h"
7#include "mc/client/social/MultiplayerServiceIdentifier.h"
8#include "mc/client/social/UserPlatformConnectionResult.h"
9#include "mc/common/GameUserType.h"
10#include "mc/deps/core/threading/Async.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
12#include "mc/deps/core/utility/Subject.h"
13#include "mc/identity/IdentityType.h"
14#include "mc/platform/MultiplayerServiceObserver.h"
15#include "mc/world/level/LevelListCacheObserver.h"
16
17// auto generated forward declare list
18// clang-format off
19class IClientInstance;
20class ILevelListCache;
21class IMinecraftGame;
22class Options;
24namespace Bedrock::PubSub { class Subscription; }
25namespace Core { class SingleThreadedLock; }
26namespace Social { class ProfileImageOptions; }
27namespace Social { class User; }
28namespace Social { class UserListObserver; }
29namespace Social { class XboxLiveUser; }
30namespace Social { struct UserCreationData; }
31namespace mce { struct Image; }
32// clang-format on
33
34namespace Social {
35
39public:
40 // member variables
41 // 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 ::std::shared_ptr<::Social::User>
87 setUserClient(int, ::std::shared_ptr<::IClientInstance> const&) /*override*/;
88
89 // vIndex: 37
90 virtual bool userHasClient(int) /*override*/;
91
92 // vIndex: 38
93 virtual ::std::string_view getPlayFabTitleId() const /*override*/;
94
95 // vIndex: 3
96 virtual ::std::shared_ptr<::Social::User> getPrimaryUser() const /*override*/;
97
98 // vIndex: 53
99 virtual ::std::shared_ptr<::Social::User> getUserFromUserId(uint) /*override*/;
100
101 // vIndex: 52
102 virtual ::std::shared_ptr<::Social::User const> const getUserFromUserId(uint) const /*override*/;
103
104 // vIndex: 51
105 virtual ::std::shared_ptr<::Social::User> getUserFromControllerId(int) const /*override*/;
106
107 // vIndex: 50
108 virtual ::std::shared_ptr<::Social::User> getUser(::IClientInstance const&) const /*override*/;
109
110 // vIndex: 49
111 virtual ::std::shared_ptr<::Social::User> getUser(::Social::XboxLiveUser const&) /*override*/;
112
113 // vIndex: 54
114 virtual ::GameUserType getUserTypeFromUserId(uint) const /*override*/;
115
116 // vIndex: 55
117 virtual bool isChatAllowedWhenBlockedByPlatform() const /*override*/;
118
119 // vIndex: 56
120 virtual ::std::vector<::std::shared_ptr<::Social::User>> const& getUsers() const /*override*/;
121
122 // vIndex: 57
123 virtual bool isUserSignedIn(uint) /*override*/;
124
125 // vIndex: 58
126 virtual bool isPrimaryUserInitialSignInInProgress() const /*override*/;
127
128 // vIndex: 1
129 virtual ::Bedrock::Threading::Async<void> createPrimaryUserAsync(::std::shared_ptr<::Options>) /*override*/;
130
131 // vIndex: 2
132 virtual void initPrimaryIdentity() /*override*/;
133
134 // vIndex: 4
135 virtual bool isSecondaryUserCreationAllowed(int) const /*override*/;
136
137 // vIndex: 5
138 virtual void setSecondaryUserCreationAllowed(int) /*override*/;
139
140 // vIndex: 6
141 virtual ::Bedrock::Threading::Async<void> addSecondaryUserAsync(
142 int,
143 ::std::shared_ptr<::Options>,
144 ::std::function<void(::Social::UserPlatformConnectionResult)>
145 ) /*override*/;
146
147 // vIndex: 47
148 virtual void tick(::IMinecraftGame&) /*override*/;
149
150 // vIndex: 48
151 virtual void updateMapping(bool, bool) /*override*/;
152
153 // vIndex: 13
154 virtual bool isPrimaryUserReady() const /*override*/;
155
156 // vIndex: 14
157 virtual bool canAccessPlayScreen() /*override*/;
158
159 // vIndex: 15
160 virtual bool needToShowPlatformStoreConnectConfirmationScreen() /*override*/;
161
162 // vIndex: 16
163 virtual bool canAccessSettingsScreen() /*override*/;
164
165 // vIndex: 17
166 virtual bool canAccessAchievementsScreen() /*override*/;
167
168 // vIndex: 18
169 virtual bool canAccessSkinScreen() /*override*/;
170
171 // vIndex: 19
172 virtual bool canAccessStoreScreen() const /*override*/;
173
174 // vIndex: 20
175 virtual bool canAccessRealmsPendingInvitesScreen() /*override*/;
176
177 // vIndex: 21
178 virtual bool canHandleInvites() /*override*/;
179
180 // vIndex: 22
181 virtual bool needPlatformConnectionBeforeXBLSignIn() /*override*/;
182
183 // vIndex: 23
184 virtual bool needPlatformConnectionForMultiplayer() const /*override*/;
185
186 // vIndex: 24
187 virtual bool needPlatformConnectionForSplitScreenMultiplayer() const /*override*/;
188
189 // vIndex: 25
190 virtual bool needPlatformConnectionBeforeServerSearch() const /*override*/;
191
192 // vIndex: 8
193 virtual bool canChangePrimaryUserFromStartMenuScreen() const /*override*/;
194
195 // vIndex: 63
196 virtual bool hasPlatformPremiumAccess() const;
197
198 // vIndex: 27
199 virtual bool hasPlatformIcons() const /*override*/;
200
201 // vIndex: 28
202 virtual bool hasPlatformProfileCards() const /*override*/;
203
204 // vIndex: 29
205 virtual void
206 getLinkedXuids(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) const
207 /*override*/;
208
209 // vIndex: 30
210 virtual void
211 getLinkedPlatformIds(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) const
212 /*override*/;
213
214 // vIndex: 39
215 virtual ::Bedrock::NotNullNonOwnerPtr<::ControllerIDtoClientMap> retrieveCIDToClientMap() /*override*/;
216
217 // vIndex: 40
218 virtual int getClientCID(::IClientInstance const&) const /*override*/;
219
220 // vIndex: 41
221 virtual void
222 registerSignOutListener(::Core::CallbackListeners<int, ::Social::SignInResult>::Listener const&) /*override*/;
223
224 // vIndex: 42
225 virtual void
226 registerSignInListener(::Core::CallbackListeners<int, ::Social::SignInResult>::Listener const&) /*override*/;
227
228 // vIndex: 43
229 virtual ::Bedrock::PubSub::Subscription registerIdentitySignInCallback(
230 ::Social::IdentityType,
231 ::std::function<void(uint, ::Social::IdentityType)>
232 ) /*override*/;
233
234 // vIndex: 44
235 virtual ::Bedrock::PubSub::Subscription registerIdentitySignOutCallback(
236 ::Social::IdentityType,
237 ::std::function<void(uint, ::Social::IdentityType)>
238 ) /*override*/;
239
240 // vIndex: 45
241 virtual ::Bedrock::PubSub::Subscription registerProfileImageChangedCallback(
242 ::std::function<void(::Social::ProfileImageOptions, ::std::shared_ptr<::mce::Image>)>
243 ) /*override*/;
244
245 // vIndex: 46
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: 59
276 virtual void registerLevelLocationObserver(::ILevelListCache&) /*override*/;
277
278 // vIndex: 60
279 virtual ::Social::MultiplayerServiceObserver& getMultiplayerServiceObserver() /*override*/;
280
281 // vIndex: 61
282 virtual ::Social::MultiplayerServiceIdentifier getPlatformMultiplayerServiceIdentifier() const /*override*/;
283
284 // vIndex: 62
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: 64
297 virtual void _onAppResumed();
298
299 // vIndex: 65
300 virtual void _onAppSuspended();
301
302 // vIndex: 66
303 virtual ::std::shared_ptr<::Social::UserCreationData>
304 _prepareUserCreationData(::GameUserType, int, ::std::shared_ptr<::Options>, uint);
305
306 // vIndex: 67
307 virtual void _onUserAdded(::std::shared_ptr<::Social::User> const&);
308 // NOLINTEND
309
310public:
311 // virtual function thunks
312 // NOLINTBEGIN
313
314 // NOLINTEND
315};
316
317} // namespace Social
Definition _HeaderOutputPredefine.h:236
Definition IClientInstance.h:186
Definition ILevelListCache.h:27
Definition IMinecraftGame.h:169
Definition LevelListCacheObserver.h:13
Definition Options.h:31
Definition IUserManager.h:34
Definition MultiplayerServiceObserver.h:17
Definition ProfileImageOptions.h:7
Definition UserManager.h:38
Definition XboxLiveUser.h:7
Definition ControllerIDtoClientMap.h:8
Definition Alias.h:14