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