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