LeviLamina
Loading...
Searching...
No Matches
StartMenuScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/certificates/identity/edu/CredentialsObserver.h"
7#include "mc/certificates/identity/edu/GenericCredentialsEvent.h"
8#include "mc/client/gui/DirtyFlag.h"
9#include "mc/client/gui/GameEventNotification.h"
10#include "mc/client/gui/SceneType.h"
11#include "mc/client/gui/ViewRequest.h"
12#include "mc/client/gui/screens/controllers/MainMenuScreenController.h"
13#include "mc/client/gui/screens/controllers/ModalScreenButtonId.h"
14#include "mc/client/social/UserListObserver.h"
15#include "mc/client/social/UserPlatformConnectionResult.h"
16#include "mc/deps/core/utility/NonOwnerPointer.h"
17
18// auto generated forward declare list
19// clang-format off
20struct IEntitlementManager;
22namespace Json { class Value; }
23namespace Social { struct User; }
24namespace edu::auth { struct CredsAuthComplete; }
25// clang-format on
26
28public:
29 // StartMenuScreenController inner types declare
30 // clang-format off
31 class SignOutObserver;
32 // clang-format on
33
34 // StartMenuScreenController inner types define
35 class SignOutObserver : public ::Social::UserListObserver {
36 public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::UntypedStorage<8, 16> mUnkfc90bb;
40 // NOLINTEND
41
42 public:
43 // prevent constructor by default
44 SignOutObserver& operator=(SignOutObserver const&);
45 SignOutObserver(SignOutObserver const&);
46 SignOutObserver();
47
48 public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual void onUserRemoved(::std::shared_ptr<::Social::User> const& user) /*override*/;
52
53 virtual ~SignOutObserver() /*override*/ = default;
54 // NOLINTEND
55
56 public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCNAPI void $onUserRemoved(::std::shared_ptr<::Social::User> const& user);
60 // NOLINTEND
61
62 public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67 };
68
69public:
70 // member variables
71 // NOLINTBEGIN
108 // NOLINTEND
109
110public:
111 // prevent constructor by default
112 StartMenuScreenController& operator=(StartMenuScreenController const&);
113 StartMenuScreenController(StartMenuScreenController const&);
114 StartMenuScreenController();
115
116public:
117 // virtual functions
118 // NOLINTBEGIN
119 virtual ~StartMenuScreenController() /*override*/;
120
121 virtual void handleLicenseChanged() /*override*/;
122
123 virtual ::ui::SceneType getSceneType() const /*override*/;
124
125 virtual void onCreation() /*override*/;
126
127 virtual void queueTitleNarration() /*override*/;
128
129 virtual void onOpen() /*override*/;
130
131 virtual void onEntered() /*override*/;
132
133 virtual void onInit() /*override*/;
134
135 virtual ::ui::DirtyFlag tick() /*override*/;
136
137 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification) /*override*/;
138
139 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
140
141 virtual void
142 onNotify(::edu::auth::GenericCredentialsEvent<::edu::auth::CredsAuthComplete> const& state) /*override*/;
143
144 virtual ::std::string _getButtonYDescription() /*override*/;
145
146 virtual ::std::string _getButtonXDescription() /*override*/;
147
148 virtual ::ui::ViewRequest promptConnect(
149 bool signInOnSuccess,
150 ::std::function<void(::Social::UserPlatformConnectionResult)> signInCallback
151 ) /*override*/;
152 // NOLINTEND
153
154public:
155 // member functions
156 // NOLINTBEGIN
157 MCAPI StartMenuScreenController(
158 ::std::shared_ptr<::MainMenuScreenModel> model,
159 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager
160 );
161
162 MCAPI bool _YHelperVisible() const;
163
164 MCAPI void _createProxy();
165
166 MCFOLD void _displayOpenExternalBrowserDialog(::std::function<void(::ModalScreenButtonId)> callback);
167
168 MCAPI void _fetchRealms();
169
170 MCAPI void _fetchUserOrientedContent(bool signInFailed);
171
172 MCAPI bool _hasAnimatedGatheringBadge() const;
173
174 MCAPI bool _hasValidGathering() const;
175
176 MCAPI bool _isProfileButtonBEnabled() const;
177
178 MCAPI bool _isSignInVisible();
179
180 MCAPI bool _isUserSigningIn() const;
181
182 MCAPI ::ui::ViewRequest _navigateToProfileScreen();
183
184 MCAPI bool _realmsPromoEnabled() const;
185
186 MCAPI void _registerBindings();
187
188 MCAPI void _registerEventHandlers();
189
190 MCAPI void _registerGatheringBindings();
191
192 MCAPI void _registerPlayButtonArtBindings();
193
194 MCAPI void _registerSilentSignInCallbacks();
195
196 MCAPI void _registerStoreButtonArtBindings();
197
198 MCAPI void _tryImportPacks();
199
200 MCAPI void _updateButtonArt();
201
202 MCAPI void _updateGatherings();
203
204 MCAPI void _updateProfileImage();
205
206 MCAPI void _updateUnreadMessageCount();
207
208 MCAPI void resetInboxAnimation();
209
210 MCAPI void startInboxAnimation();
211 // NOLINTEND
212
213public:
214 // constructor thunks
215 // NOLINTBEGIN
216 MCAPI void* $ctor(
217 ::std::shared_ptr<::MainMenuScreenModel> model,
218 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager
219 );
220 // NOLINTEND
221
222public:
223 // destructor thunk
224 // NOLINTBEGIN
225 MCAPI void $dtor();
226 // NOLINTEND
227
228public:
229 // virtual function thunks
230 // NOLINTBEGIN
231 MCAPI void $handleLicenseChanged();
232
233 MCAPI ::ui::SceneType $getSceneType() const;
234
235 MCAPI void $onCreation();
236
237 MCAPI void $queueTitleNarration();
238
239 MCAPI void $onOpen();
240
241 MCAPI void $onEntered();
242
243 MCAPI void $onInit();
244
245 MCAPI ::ui::DirtyFlag $tick();
246
247 MCAPI void $addStaticScreenVars(::Json::Value& globalVars);
248
249 MCAPI void $onNotify(::edu::auth::GenericCredentialsEvent<::edu::auth::CredsAuthComplete> const& state);
250
251 MCAPI ::std::string $_getButtonYDescription();
252
253 MCAPI ::std::string $_getButtonXDescription();
254
255 MCAPI ::ui::ViewRequest
256 $promptConnect(bool signInOnSuccess, ::std::function<void(::Social::UserPlatformConnectionResult)> signInCallback);
257 // NOLINTEND
258
259public:
260 // vftables
261 // NOLINTBEGIN
263
264 MCNAPI static void** $vftableForScreenController();
265
266 MCNAPI static void** $vftable();
267 // NOLINTEND
268};
Definition Value.h:16
Definition MainMenuScreenController.h:5
Definition StartMenuScreenController.h:13
MCAPI void $onUserRemoved(::std::shared_ptr<::Social::User > const &user)
Definition StartMenuScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftable()
STL namespace.
Definition MainMenuScreenModel.h:5
Definition User.h:7
Definition CredentialsObserver.h:25
Definition CredsAuthComplete.h:7
Definition Alias.h:14