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/Async.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 ::Bedrock::Threading::Async<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 ::Bedrock::Threading::Async<::Social::AuthToken> getAuthToken(::std::string const&) const;
100
101 // vIndex: 19
102 virtual void getUserDataObject(::Social::IUserDataObject&) const;
103
104 // vIndex: 20
105 virtual void setUserDataObject(::Social::IUserDataObject const&);
106
107 // vIndex: 21
108 virtual ::Social::UserData const getUserData(::std::string const&) const;
109
110 // vIndex: 22
111 virtual void setUserData(::std::string const&, ::Social::UserData const&);
112
113 // vIndex: 23
114 virtual bool hasCachedCredentials() const;
115
116 // vIndex: 24
117 virtual void clearCachedCredentials();
118
119 // vIndex: 25
120 virtual ::std::string getDisplayName() const;
121
122 // vIndex: 26
123 virtual void setPresence(::std::string const&);
124
125 // vIndex: 27
126 virtual void clearPresence();
127
128 // vIndex: 28
129 virtual bool hasPlayedLegacyGame() const;
130
131 // vIndex: 29
132 virtual bool getLegacyOptionsData(::std::vector<uchar>&);
133
134 // vIndex: 30
135 virtual void checkIsLegacyPlayer(::std::weak_ptr<::Social::User>);
136
137 // vIndex: 31
138 virtual bool hasPremiumPlatformAccess() const;
139
140 // vIndex: 32
141 virtual void checkPremiumPlatformStatusAsync(::std::function<void(bool)>);
142
143 // vIndex: 33
144 virtual bool hasPlatformIcons() const;
145
146 // vIndex: 34
147 virtual bool hasPlatformProfileCards() const;
148
149 // vIndex: 35
150 virtual ::std::string getPlatformId() const;
151
152 // vIndex: 36
153 virtual ::std::string getPlatformOfflineID() const;
154
155 // vIndex: 37
156 virtual ::std::string getPlatformOnlineID() const;
157
158 // vIndex: 38
159 virtual ::Social::PermissionDenyReason isMultiplayerAllowed() const;
160
161 // vIndex: 39
162 virtual ::Social::PermissionDenyReason isChatAllowed() const;
163
164 // vIndex: 40
165 virtual ::Social::PermissionDenyReason isAddFriendAllowed() const;
166
167 // vIndex: 41
168 virtual ::Social::PermissionDenyReason isUserGeneratedContentAllowed() const;
169
170 // vIndex: 42
171 virtual ::Social::PermissionDenyReason isCreateAndJoinClubsAllowed() const;
172
173 // vIndex: 43
174 virtual ::Social::PermissionDenyReason isViewingProfilesAllowed() const;
175
176 // vIndex: 44
177 virtual ::Social::PermissionDenyReason isUploadCapturesAllowed() const;
178
179 // vIndex: 45
180 virtual int addPermissionsChangeListener(::std::function<void()>);
181
182 // vIndex: 46
183 virtual void removePermissionsChangeListener(int);
184
185 // vIndex: 47
186 virtual bool isPlatformParentalControlsEnabled() const;
187
188 // vIndex: 48
189 virtual void refreshPlatformParentalControlsSetting();
190
191 // vIndex: 49
192 virtual void refreshFriendListProfileDataIfAllowed();
193
194 // vIndex: 50
195 virtual bool isBlockingUser(::std::string const&) const;
196
197 // vIndex: 51
198 virtual ::Bedrock::Threading::Async<::Social::PlatformUserProfileData> getProfile(::std::string const&);
199
200 // vIndex: 52
201 virtual ::Bedrock::Threading::Async<::std::vector<::Social::PlatformUserProfileData>>
202 getProfiles(::std::vector<::std::string> const&);
203
204 // vIndex: 53
205 virtual ::Bedrock::Threading::Async<::std::vector<::Social::PlatformUserProfileData>> getFriendProfiles();
206
207 // vIndex: 54
208 virtual void pruneProfileImageCache();
209 // NOLINTEND
210
211public:
212 // virtual function thunks
213 // NOLINTBEGIN
214
215 // NOLINTEND
216};
217
218} // namespace Social
Definition IUserDataObject.h:12
Definition Identity.h:24
Definition UserData.h:7
Definition IdentitySignInProperties.h:7
Definition Alias.h:14