Skip to content
LeviMC
English
AutoLightDark
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/legacy/ImportStatus.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;
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 MCNAPI MainMenuScreenController(::std::shared_ptr<::MainMenuScreenModel> model, ::ScreenExitBehavior exitBehavior);
55
57
58 MCNAPI void _displayWorldConversionErrorModalDialog(::Legacy::ImportStatus status);
59
60 MCNAPI ::ui::ViewRequest _startLocalWorldSubRoutine(
61 ::LocalWorldInfo const& world,
62 ::DlcUIWrapper& dlcUIWrapper,
63 ::std::function<void(::LocalWorldInfo const&)> startLocalWorldCallback
64 );
65
66 MCNAPI void _verifySkinApprovedBeforeJoin(::std::function<void()> const& joinCallback);
67
68 MCNAPI ::ui::ViewRequest attemptUserSignIn(::std::function<void()> adHocCallback);
69
70 MCNAPI void confirmationNoCrossPlatformMultiplayerDialog(::std::function<void(::ModalScreenButtonId)> callback);
71
72 MCNAPI void confirmationNoCrossPlatformMultiplayerSkinDialog(::std::function<void()> callback);
73
75
76 MCNAPI void startRealm(
77 ::IMinecraftEventing::RealmConnectionFlow fromFlow,
78 ::Realms::World& world,
79 ::std::function<void(::IMinecraftEventing::RealmConnectionResult, ::std::optional<::Realms::FailureReason>)>
80 callback,
81 ::MainMenuScreenController::StartRealmFailureAction failureAction,
82 ::std::function<void()> onlineSafetyCancelledCallback
83 );
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCNAPI void* $ctor(::std::shared_ptr<::MainMenuScreenModel> model, ::ScreenExitBehavior exitBehavior);
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCNAPI void $dtor();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCAPI void $onOpen();
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftableForScreenController();
108
110 // NOLINTEND
111};
Definition AsyncTracker.h:5
Definition DlcUIWrapper.h:5
Definition MainMenuScreenController.h:5
MCAPI::ui::ViewRequest attemptUserSignIn(::std::function< void()> adHocCallback)
MCAPI::std::string _checkTextEditEventForProfanityAndOpenWarning(::TextEditScreenEventData const &textEditEvent)
MCAPI::ui::ViewRequest _startLocalWorldSubRoutine(::LocalWorldInfo const &world, ::DlcUIWrapper &dlcUIWrapper, ::std::function< void(::LocalWorldInfo const &)> startLocalWorldCallback)
MCAPI void startRealm(::IMinecraftEventing::RealmConnectionFlow fromFlow, ::Realms::World &world, ::std::function< void(::IMinecraftEventing::RealmConnectionResult, ::std::optional<::Realms::FailureReason >)> callback, ::MainMenuScreenController::StartRealmFailureAction failureAction, ::std::function< void()> onlineSafetyCancelledCallback)
static MCAPI void ** $vftableForEnableNonOwnerReferences()
MCAPI void _displayWorldConversionErrorModalDialog(::Legacy::ImportStatus status)
static MCAPI void ** $vftableForScreenController()
MCAPI void _verifySkinApprovedBeforeJoin(::std::function< void()> const &joinCallback)
MCAPI void showInvalidCrossPlatformMultiplayerSkinModal()
MCAPI void * $ctor(::std::shared_ptr<::MainMenuScreenModel > model, ::ScreenExitBehavior exitBehavior)
MCAPI void confirmationNoCrossPlatformMultiplayerDialog(::std::function< void(::ModalScreenButtonId)> callback)
MCAPI MainMenuScreenController(::std::shared_ptr<::MainMenuScreenModel > model, ::ScreenExitBehavior exitBehavior)
MCAPI void confirmationNoCrossPlatformMultiplayerSkinDialog(::std::function< void()> callback)
Definition MainMenuScreenModel.h:5
Definition MinecraftScreenController.h:5
Definition LocalWorldInfo.h:5
Definition World.h:7
Definition TextEditScreenEventData.h:5