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