LeviLamina
Loading...
Searching...
No Matches
MainMenuScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/StoreNavigationOrigin.h"
7#include "mc/client/gui/ViewRequest.h"
8#include "mc/client/gui/screens/controllers/MinecraftScreenController.h"
9#include "mc/client/gui/screens/controllers/ModalScreenButtonId.h"
10#include "mc/client/gui/screens/controllers/ScreenExitBehavior.h"
11#include "mc/client/network/realms/FailureReason.h"
12#include "mc/events/IMinecraftEventing.h"
13
14// auto generated forward declare list
15// clang-format off
16class AsyncTracker;
17class DlcUIWrapper;
18class IStoreCatalogItem;
20struct LevelSummary;
21struct LocalWorldInfo;
23namespace Realms { struct World; }
24namespace mce { class UUID; }
25// clang-format on
26
28public:
29 // MainMenuScreenController inner types define
30 enum class StartRealmFailureAction : int {
31 ShowModalPopup = 0,
32 JustNotifyCallback = 1,
33 };
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::MainMenuScreenModel>> mMainMenuScreenModel;
39 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::AsyncTracker>> mAsyncTracker;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 MainMenuScreenController();
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual ~MainMenuScreenController() /*override*/;
50
51 virtual void onOpen() /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI MainMenuScreenController(::std::shared_ptr<::MainMenuScreenModel> model, ::ScreenExitBehavior exitBehavior);
58
59 MCAPI ::std::string _checkTextEditEventForProfanityAndOpenWarning(::TextEditScreenEventData const& textEditEvent);
60
61 MCFOLD void _displayFileStorageLocationWarningModal();
62
63 MCAPI void _displayWorldConversionErrorModalDialog();
64
65 MCAPI void _navigateToPurchaseOfferScreen(::mce::UUID const& uuid, ::StoreNavigationOrigin origin);
66
67 MCAPI void
68 _navigateToPurchaseOfferScreen(::IStoreCatalogItem& item, ::StoreNavigationOrigin origin, bool allowSeeMoreBy);
69
70 MCAPI ::ui::ViewRequest _startLocalWorldSubRoutine(
71 ::LocalWorldInfo const& world,
72 ::DlcUIWrapper& dlcUIWrapper,
73 ::std::function<void(::LocalWorldInfo const&)> startLocalWorldCallback
74 );
75
76 MCAPI bool _tryCopyWorld(::LevelSummary const& levelSummary);
77
78 MCAPI void _verifySkinApprovedBeforeJoin(::std::function<void()> const& joinCallback);
79
80 MCAPI ::ui::ViewRequest attemptUserSignIn(::std::function<void()> adHocCallback);
81
82 MCAPI void confirmationExperimentalVersionDialog(::std::function<void(::ModalScreenButtonId)> callback);
83
84 MCAPI void confirmationNoCrossPlatformMultiplayerDialog(::std::function<void(::ModalScreenButtonId)> callback);
85
86 MCAPI void confirmationNoCrossPlatformMultiplayerSkinDialog(::std::function<void()> callback);
87
88 MCAPI ::std::shared_ptr<::MainMenuScreenModel> getMainMenuScreenModel();
89
90 MCAPI void needOnlineNetworkForXBLSignInDialog(::std::function<void(::ModalScreenButtonId)> callback);
91
92 MCAPI void showInvalidCrossPlatformMultiplayerSkinModal();
93
94 MCAPI void startRealm(
95 ::IMinecraftEventing::RealmConnectionFlow fromFlow,
96 ::Realms::World& world,
97 ::std::function<void(::IMinecraftEventing::RealmConnectionResult, ::std::optional<::Realms::FailureReason>)>
98 callback,
99 ::MainMenuScreenController::StartRealmFailureAction failureAction,
100 ::std::function<void()> onlineSafetyCancelledCallback
101 );
102 // NOLINTEND
103
104public:
105 // constructor thunks
106 // NOLINTBEGIN
107 MCAPI void* $ctor(::std::shared_ptr<::MainMenuScreenModel> model, ::ScreenExitBehavior exitBehavior);
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCAPI void $dtor();
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCAPI void $onOpen();
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCNAPI static void** $vftableForScreenController();
126
128 // NOLINTEND
129};
Definition AsyncTracker.h:5
Definition DlcUIWrapper.h:5
Definition MainMenuScreenController.h:5
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForScreenController()
Definition MainMenuScreenModel.h:5
Definition MinecraftScreenController.h:5
Definition UUID.h:7
Definition LevelSummary.h:30
Definition LocalWorldInfo.h:5
Definition World.h:7
Definition TextEditScreenEventData.h:5