LeviLamina
Loading...
Searching...
No Matches
Identity.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/IAsyncResult.h"
7#include "mc/identity/IdentityEventResponse.h"
8#include "mc/identity/IdentityType.h"
9#include "mc/identity/PermissionDenyReason.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Social { class IUserDataObject; }
14namespace Social { class User; }
15namespace Social { class UserData; }
16namespace Social { struct AuthToken; }
17namespace Social { struct IdentitySignInProperties; }
18namespace Social { struct PlatformUserProfileData; }
19namespace Social { struct PlayerIDs; }
20// clang-format on
21
22namespace Social {
23
24class Identity : public ::std::enable_shared_from_this<::Social::Identity> {
25public:
26 // member variables
27 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 Identity& operator=(Identity const&);
39 Identity(Identity const&);
40 Identity();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 // vIndex: 0
46 virtual ~Identity() = default;
47
48 // vIndex: 1
49 virtual ::Social::IdentityEventResponse initialize(::std::weak_ptr<::Social::User>);
50
51 // vIndex: 2
52 virtual ::Social::IdentityType getType() const = 0;
53
54 // vIndex: 3
55 virtual void tick();
56
57 // vIndex: 4
58 virtual void signIn(::Social::IdentitySignInProperties const&);
59
60 // vIndex: 5
61 virtual void cancelSignIn();
62
63 // vIndex: 6
64 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<bool>> signOut();
65
66 // vIndex: 7
67 virtual void doDisconnect();
68
69 // vIndex: 8
70 virtual bool isSignedIn() const;
71
72 // vIndex: 9
73 virtual bool isNewAccount() const;
74
75 // vIndex: 10
76 virtual bool isSignInInProgress() const;
77
78 // vIndex: 11
79 virtual bool isGuest() const;
80
81 // vIndex: 12
82 virtual bool isRemote() const;
83
84 // vIndex: 13
85 virtual ::gsl::span<::Social::IdentityType const> getDependencies() const;
86
87 // vIndex: 14
88 virtual ::Social::IdentityEventResponse onIdentitySignIn(::Social::Identity&);
89
90 // vIndex: 15
91 virtual ::Social::IdentityEventResponse onIdentitySignOut(::Social::IdentityType);
92
93 // vIndex: 16
94 virtual ::std::string const& getId() const;
95
96 // vIndex: 17
97 virtual ::Social::PlayerIDs getIds() const;
98
99 // vIndex: 18
100 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Social::AuthToken>>
101 getAuthToken(::std::string const&) const;
102
103 // vIndex: 19
104 virtual void getUserDataObject(::Social::IUserDataObject&) const;
105
106 // vIndex: 20
107 virtual void setUserDataObject(::Social::IUserDataObject const&);
108
109 // vIndex: 21
110 virtual ::Social::UserData const getUserData(::std::string const&) const;
111
112 // vIndex: 22
113 virtual void setUserData(::std::string const&, ::Social::UserData const&);
114
115 // vIndex: 23
116 virtual bool hasCachedCredentials() const;
117
118 // vIndex: 24
119 virtual void clearCachedCredentials();
120
121 // vIndex: 25
122 virtual ::std::string const& getDisplayName() const;
123
124 // vIndex: 26
125 virtual void setPresence(::std::string const&);
126
127 // vIndex: 27
128 virtual void clearPresence();
129
130 // vIndex: 28
131 virtual bool hasPlayedLegacyGame() const;
132
133 // vIndex: 29
134 virtual bool getLegacyOptionsData(::std::vector<uchar>&);
135
136 // vIndex: 30
137 virtual void checkIsLegacyPlayer(::std::weak_ptr<::Social::User>);
138
139 // vIndex: 31
140 virtual bool hasPremiumPlatformAccess() const;
141
142 // vIndex: 32
143 virtual void checkPremiumPlatformStatusAsync(::std::function<void(bool)>);
144
145 // vIndex: 33
146 virtual bool hasPlatformIcons() const;
147
148 // vIndex: 34
149 virtual bool hasPlatformProfileCards() const;
150
151 // vIndex: 35
152 virtual ::std::string getPlatformId() const;
153
154 // vIndex: 36
155 virtual ::std::string getPlatformOfflineID() const;
156
157 // vIndex: 37
158 virtual ::std::string getPlatformOnlineID() const;
159
160 // vIndex: 38
161 virtual ::Social::PermissionDenyReason isMultiplayerAllowed() const;
162
163 // vIndex: 39
164 virtual ::Social::PermissionDenyReason isChatAllowed() const;
165
166 // vIndex: 40
167 virtual ::Social::PermissionDenyReason isAddFriendAllowed() const;
168
169 // vIndex: 41
170 virtual ::Social::PermissionDenyReason isUserGeneratedContentAllowed() const;
171
172 // vIndex: 42
173 virtual ::Social::PermissionDenyReason isCreateAndJoinClubsAllowed() const;
174
175 // vIndex: 43
176 virtual ::Social::PermissionDenyReason isViewingProfilesAllowed() const;
177
178 // vIndex: 44
179 virtual ::Social::PermissionDenyReason isUploadCapturesAllowed() const;
180
181 // vIndex: 45
182 virtual int addPermissionsChangeListener(::std::function<void()>);
183
184 // vIndex: 46
185 virtual void removePermissionsChangeListener(int);
186
187 // vIndex: 47
188 virtual bool isPlatformParentalControlsEnabled() const;
189
190 // vIndex: 48
191 virtual void refreshPlatformParentalControlsSetting();
192
193 // vIndex: 49
194 virtual void refreshFriendListProfileDataIfAllowed();
195
196 // vIndex: 50
197 virtual bool isBlockingUser(::std::string const&) const;
198
199 // vIndex: 51
200 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Social::PlatformUserProfileData>>
201 getProfile(::std::string const&);
202
203 // vIndex: 52
204 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::std::vector<::Social::PlatformUserProfileData>>>
205 getProfiles(::std::vector<::std::string> const&);
206
207 // vIndex: 53
208 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::std::vector<::Social::PlatformUserProfileData>>>
209 getFriendProfiles();
210
211 // vIndex: 54
212 virtual void pruneProfileImageCache();
213
214 // vIndex: 55
215 virtual void getLinkedXuids(
216 ::std::function<void(::std::string, ::std::string)>,
217 ::std::vector<::std::string> const&,
218 ::std::shared_ptr<::Social::Identity> const
219 );
220
221 // vIndex: 56
222 virtual void
223 getLinkedPlatformIds(::std::function<void(::std::string, ::std::string)>, ::std::vector<::std::string> const&);
224 // NOLINTEND
225
226public:
227 // destructor thunk
228 // NOLINTBEGIN
229
230 // NOLINTEND
231
232public:
233 // virtual function thunks
234 // NOLINTBEGIN
235
236 // NOLINTEND
237};
238
239} // namespace Social
Definition IUserDataObject.h:12
Definition Identity.h:24
Definition UserData.h:7
Definition IdentitySignInProperties.h:7
Definition Alias.h:14