LeviLamina
Loading...
Searching...
No Matches
User.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/social/RelationshipStatus.h"
7#include "mc/client/social/UserPlatformConnectionResult.h"
8#include "mc/client/social/UserPlatformConnectionState.h"
9#include "mc/common/GameUserType.h"
10#include "mc/deps/core/file/PathBuffer.h"
11#include "mc/deps/core/platform/BuildPlatform.h"
12#include "mc/deps/core/threading/IAsyncResult.h"
13#include "mc/deps/core/utility/NonOwnerPointer.h"
14#include "mc/identity/IdentityEventResponse.h"
15#include "mc/identity/IdentityType.h"
16
17// auto generated forward declare list
18// clang-format off
19class CallbackToken;
21class IClientInstance;
22class IOptions;
23namespace Bedrock::PubSub { class Subscription; }
24namespace Core { class FileStorageArea; }
25namespace Core { class Path; }
26namespace Social { class IUserDataObject; }
27namespace Social { class Identity; }
28namespace Social { class PlatformImageService; }
29namespace Social { class ProfileImageOptions; }
30namespace Social { class UserData; }
31namespace Social { class UserManager; }
32namespace Social { class XboxLiveUser; }
33namespace Social { struct AuthToken; }
34namespace Social { struct MultiIdentitySigninResult; }
35namespace Social { struct PermissionCheckResult; }
36namespace Social { struct PlatformUserProfileData; }
37namespace Social { struct UserSignInProperties; }
38namespace mce { struct Image; }
39// clang-format on
40
41namespace Social {
42
43class User : public ::std::enable_shared_from_this<::Social::User> {
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 0
48 virtual ~User() = default;
49
50 // vIndex: 1
51 virtual void initStorageAreas() = 0;
52
53 // vIndex: 2
54 virtual ::GameUserType getType() const = 0;
55
56 // vIndex: 3
57 virtual bool isPrimaryUser() const = 0;
58
59 // vIndex: 4
60 virtual bool isAnonymous() const = 0;
61
62 // vIndex: 5
63 virtual bool isConnected() const = 0;
64
65 // vIndex: 6
66 virtual bool isReady() const = 0;
67
68 // vIndex: 7
69 virtual bool needsPlatformReconnect() const = 0;
70
71 // vIndex: 8
72 virtual bool isSignedIn(::Social::IdentityType) const = 0;
73
74 // vIndex: 10
75 virtual bool isSignInInProgress(::Social::IdentityType) const = 0;
76
77 // vIndex: 9
78 virtual bool isSignInInProgress() const = 0;
79
80 // vIndex: 11
81 virtual bool signIn(::Social::UserSignInProperties const&) = 0;
82
83 // vIndex: 12
84 virtual void cancelSignIn(::Social::IdentityType) = 0;
85
86 // vIndex: 13
87 virtual void signOut(::Social::IdentityType, ::std::function<void(bool)>) = 0;
88
89 // vIndex: 14
90 virtual void clearCachedCredentials(::Social::IdentityType) = 0;
91
92 // vIndex: 15
93 virtual bool hasNetworkPrivileges() const = 0;
94
95 // vIndex: 16
96 virtual ::Bedrock::PubSub::Subscription
97 registerIdentitySignInSubscriber(::Social::IdentityType, ::std::function<void(uint, ::Social::IdentityType)>) = 0;
98
99 // vIndex: 17
100 virtual ::Bedrock::PubSub::Subscription
101 registerIdentitySignOutSubscriber(::Social::IdentityType, ::std::function<void(uint, ::Social::IdentityType)>) = 0;
102
103 // vIndex: 18
104 virtual ::CallbackToken connectAsync(::std::function<void(::Social::UserPlatformConnectionResult)>, bool) = 0;
105
106 // vIndex: 19
107 virtual void enterOfflineMode(::std::function<void(bool)>) = 0;
108
109 // vIndex: 20
110 virtual ::Social::UserPlatformConnectionState getPlatformConnectionState() const = 0;
111
112 // vIndex: 21
113 virtual uint getLocalUserId() const = 0;
114
115 // vIndex: 22
116 virtual ::std::string const& getId(::Social::IdentityType) const = 0;
117
118 // vIndex: 23
119 virtual ::std::string const& getMinecraftAccountID() const = 0;
120
121 // vIndex: 25
122 virtual void
123 getAuthToken(::Social::IdentityType, ::std::string const&, ::std::function<void(::Social::AuthToken)>) const = 0;
124
125 // vIndex: 24
126 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Social::AuthToken>>
127 getAuthToken(::Social::IdentityType, ::std::string const&) const = 0;
128
129 // vIndex: 26
130 virtual ::std::string const& getPlayFabSessionTicket() const = 0;
131
132 // vIndex: 27
133 virtual bool doesPlayFabHaveErrorStatus() const = 0;
134
135 // vIndex: 28
136 virtual ::std::string getPlayFabErrorStatusCodeString() const = 0;
137
138 // vIndex: 29
139 virtual ::std::string const& getPlayFabEntityToken() const = 0;
140
141 // vIndex: 31
142 virtual ::std::shared_ptr<::Social::Identity> getIdentity(::Social::IdentityType) = 0;
143
144 // vIndex: 30
145 virtual ::std::shared_ptr<::Social::Identity const> const getIdentity(::Social::IdentityType) const = 0;
146
147 // vIndex: 32
148 virtual bool hasIdentity(::Social::IdentityType) const = 0;
149
150 // vIndex: 33
151 virtual void setShouldTransferDeviceAccountToXboxLive(bool const) = 0;
152
153 // vIndex: 34
154 virtual bool shouldLinkPlayFabAndLiveAccounts() const = 0;
155
156 // vIndex: 35
157 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<bool>> unlinkXboxLiveAccount() = 0;
158
159 // vIndex: 36
160 virtual void getUserDataObject(::Social::IUserDataObject&) const = 0;
161
162 // vIndex: 37
163 virtual void setUserDataObject(::Social::IUserDataObject const&) = 0;
164
165 // vIndex: 38
166 virtual ::Social::UserData const getUserData(::std::string const&) const = 0;
167
168 // vIndex: 39
169 virtual void setUserData(::std::string const&, ::Social::UserData const&) = 0;
170
171 // vIndex: 40
172 virtual void tick() = 0;
173
174 // vIndex: 41
175 virtual void finalize() = 0;
176
177 // vIndex: 42
178 virtual void disconnect() = 0;
179
180 // vIndex: 43
181 virtual void signOutFromPlatform() = 0;
182
183 // vIndex: 44
184 virtual bool isFinalized() const = 0;
185
186 // vIndex: 45
187 virtual ::CloudSaveSystemWrapper& getCloudSaveSystem() = 0;
188
189 // vIndex: 47
190 virtual ::std::string getDisplayName() const = 0;
191
192 // vIndex: 46
193 virtual ::std::string getDisplayName(::Social::IdentityType) const = 0;
194
195 // vIndex: 48
196 virtual ::std::shared_ptr<::Core::FileStorageArea> const getStorageArea() const = 0;
197
198 // vIndex: 49
199 virtual ::Core::Path getSettingsDirectoryPath() const = 0;
200
201 // vIndex: 50
202 virtual bool hasValidSettingsDirectoryPath() const = 0;
203
204 // vIndex: 51
205 virtual ::std::shared_ptr<::IOptions> const getOptions() const = 0;
206
207 // vIndex: 52
208 virtual ::Social::XboxLiveUser& getLiveUser() const = 0;
209
210 // vIndex: 53
211 virtual void setLiveUser(::std::unique_ptr<::Social::XboxLiveUser>) = 0;
212
213 // vIndex: 54
214 virtual void
215 checkPrivilegeWithUIAsync(int, ::std::string const&, ::std::function<void(::Social::PermissionCheckResult)>) = 0;
216
217 // vIndex: 55
218 virtual ::RelationshipStatus mayChatWith(::std::string const&) = 0;
219
220 // vIndex: 56
221 virtual bool mayChatWithMe(::std::string const&) const = 0;
222
223 // vIndex: 57
224 virtual bool isMutedPlayer(::std::string const&) = 0;
225
226 // vIndex: 58
227 virtual ::Social::PermissionCheckResult multiplayerAllowed() const = 0;
228
229 // vIndex: 59
230 virtual ::Social::PermissionCheckResult chatAllowed() const = 0;
231
232 // vIndex: 60
233 virtual ::Social::PermissionCheckResult addFriendAllowed() const = 0;
234
235 // vIndex: 61
236 virtual ::Social::PermissionCheckResult userGeneratedContentAllowed() const = 0;
237
238 // vIndex: 62
239 virtual ::Social::PermissionCheckResult createAndJoinClubsAllowed() const = 0;
240
241 // vIndex: 63
242 virtual ::Social::PermissionCheckResult viewingProfilesAllowed() const = 0;
243
244 // vIndex: 64
245 virtual ::Social::PermissionCheckResult uploadCapturesAllowed() const = 0;
246
247 // vIndex: 65
248 virtual bool isRemotePlatformUser() const = 0;
249
250 // vIndex: 66
251 virtual bool shouldClearChatOnJoinGame() const = 0;
252
253 // vIndex: 67
254 virtual int getGameControllerId() const = 0;
255
256 // vIndex: 68
257 virtual void setGameControllerId(int) = 0;
258
259 // vIndex: 69
260 virtual ::std::string getPlatformID() const = 0;
261
262 // vIndex: 70
263 virtual bool hasPremiumPlatformAccess() const = 0;
264
265 // vIndex: 71
266 virtual void checkPremiumPlatformStatusAsync(::std::function<void(bool)>) = 0;
267
268 // vIndex: 72
269 virtual bool hasPlatformIcons() const = 0;
270
271 // vIndex: 73
272 virtual bool hasPlatformProfileCards() const = 0;
273
274 // vIndex: 74
275 virtual void
276 getLinkedXuids(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) = 0;
277
278 // vIndex: 75
279 virtual void
280 getLinkedPlatformIds(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&) = 0;
281
282 // vIndex: 76
283 virtual ::Social::PlatformImageService& getPlatformFriendsImageService() = 0;
284
285 // vIndex: 77
286 virtual void
287 getPlatformProfile(::std::string const&, ::std::function<void(::Social::PlatformUserProfileData&)>) = 0;
288
289 // vIndex: 78
290 virtual void
291 getPlatformProfiles(::std::vector<::std::string> const&, ::std::function<void(::std::vector<::Social::PlatformUserProfileData>&&)>) = 0;
292
293 // vIndex: 79
294 virtual ::Social::ProfileImageOptions getDefaultProfileImageOptions() const = 0;
295
296 // vIndex: 80
297 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::std::shared_ptr<::mce::Image>>>
298 getProfileImage(::Social::ProfileImageOptions const&) = 0;
299
300 // vIndex: 81
301 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Core::PathBuffer<::std::string>>>
302 getProfileImageFile(::Social::ProfileImageOptions const&) = 0;
303
304 // vIndex: 82
305 virtual bool canSignInToXBL() const = 0;
306
307 // vIndex: 83
308 virtual void setNeedsPlatformReconnect() = 0;
309
310 // vIndex: 84
311 virtual ::std::string getPlatformOfflineID() const = 0;
312
313 // vIndex: 85
314 virtual ::std::string getPlatformOnlineID() const = 0;
315
316 // vIndex: 86
317 virtual void associateClientInstance(::std::shared_ptr<::IClientInstance>) = 0;
318
319 // vIndex: 88
320 virtual ::std::weak_ptr<::IClientInstance> getAssociateClientInstance() = 0;
321
322 // vIndex: 87
323 virtual ::std::weak_ptr<::IClientInstance const> const getAssociateClientInstance() const = 0;
324
325 // vIndex: 89
326 virtual void setPresence(::std::string const&) = 0;
327
328 // vIndex: 90
329 virtual void clearPresence() = 0;
330
331 // vIndex: 91
332 virtual bool hasPlayedLegacyGame() const = 0;
333
334 // vIndex: 92
335 virtual bool getLegacyOptionsData(::std::vector<uchar>&) const = 0;
336
337 // vIndex: 93
338 virtual void onAppSuspend() = 0;
339
340 // vIndex: 94
341 virtual void onAppResumed() = 0;
342
343 // vIndex: 95
344 virtual bool isBanned() const = 0;
345
346 // vIndex: 96
347 virtual ::std::string const& getBanReason() const = 0;
348
349 // vIndex: 97
350 virtual ::std::string const& getBanExpiration() const = 0;
351
352 // vIndex: 98
353 virtual void initIdentity() = 0;
354
355 // vIndex: 99
356 virtual void setUserManager(::Bedrock::NonOwnerPointer<::Social::UserManager>) = 0;
357
358 // vIndex: 100
359 virtual void _onSignOut(::Social::IdentityType) = 0;
360
361 // vIndex: 101
362 virtual void
363 _notifyIdentitiesOfSignIn(::std::shared_ptr<::Social::Identity>, ::std::function<bool(::Social::IdentityEventResponse, ::std::shared_ptr<::Social::Identity>)>) = 0;
364
365 // vIndex: 102
366 virtual void _notifyIdentitySignInEventSubscribers(::Social::IdentityType) = 0;
367
368 // vIndex: 103
369 virtual void _notifyIdentitySignOutEventSubscribers(::Social::IdentityType) = 0;
370
371 // vIndex: 104
372 virtual void setStorageArea(::std::shared_ptr<::Core::FileStorageArea>, ::BuildPlatform) = 0;
373
374 // vIndex: 105
375 virtual void _postSignInSteps(::Social::MultiIdentitySigninResult, ::std::vector<::Social::IdentityType>&) = 0;
376
377 // vIndex: 106
378 virtual void
379 _finalizeSignIn(::Social::MultiIdentitySigninResult&&, ::std::vector<::Social::IdentityType>&&, ::std::set<::Social::IdentityType>&&) = 0;
380 // NOLINTEND
381
382public:
383 // destructor thunk
384 // NOLINTBEGIN
385
386 // NOLINTEND
387
388public:
389 // virtual function thunks
390 // NOLINTBEGIN
391
392 // NOLINTEND
393};
394
395} // namespace Social
Definition NonOwnerPointer.h:9
Definition CallbackToken.h:5
Definition CloudSaveSystemWrapper.h:5
Definition IClientInstance.h:179
Definition IOptions.h:41
Definition Path.h:16
Definition IUserDataObject.h:12
Definition ProfileImageOptions.h:7
Definition UserData.h:7
Definition User.h:43
Definition AuthToken.h:10
Definition MultiIdentitySigninResult.h:7
Definition PermissionCheckResult.h:7
Definition PlatformUserProfileData.h:7
Definition UserSignInProperties.h:7