LeviLamina
Loading...
Searching...
No Matches
ChooseRealmScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/ViewRequest.h"
8#include "mc/client/gui/screens/controllers/MainMenuScreenController.h"
9#include "mc/client/gui/screens/controllers/SlotSelectedAction.h"
10
11// auto generated forward declare list
12// clang-format off
14namespace Realms { struct Slot; }
15namespace Realms { struct World; }
16namespace RealmsScreenUtils { struct RealmsWorldLoadingDetailsGroup; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, bool> mDirty;
24 ::ll::TypedStorage<1, 1, bool> mSlotsViewToggle;
25 ::ll::TypedStorage<1, 1, bool> mProgressLoadingVisible;
26 ::ll::TypedStorage<4, 4, int> mCurrentRealmIndex;
27 ::ll::TypedStorage<8, 32, ::std::string> mCurrentSlotImage;
28 ::ll::TypedStorage<8, 32, ::std::string> mCurrentSlotImagePath;
29 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::RealmsScreenUtils::RealmsWorldLoadingDetailsGroup>>
30 mRealmsWorldLoadingDetailsGroup;
31 ::ll::TypedStorage<1, 1, bool> mDoneLoading;
32 ::ll::TypedStorage<8, 64, ::std::function<void(::Realms::World)>> mCallback;
33 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancelCallback;
34 ::ll::TypedStorage<4, 4, ::SlotSelectedAction> mSlotSelectedAction;
35 ::ll::TypedStorage<1, 1, bool> mRealmSlotSelected;
36 ::ll::TypedStorage<1, 1, bool> mShowingConfirmationDialog;
37 ::ll::TypedStorage<1, 1, bool> mIsChangingSlot;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 ChooseRealmScreenController();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual void onCreation() /*override*/;
48
49 virtual void onOpen() /*override*/;
50
51 virtual void onDelete() /*override*/;
52
53 virtual ::ui::DirtyFlag tick() /*override*/;
54
55 virtual ~ChooseRealmScreenController() /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI ChooseRealmScreenController(
62 ::std::shared_ptr<::MainMenuScreenModel> model,
63 ::std::function<void(::Realms::World)> callback,
64 ::SlotSelectedAction selectionAction,
65 ::std::function<void()> onCancelCallback
66 );
67
68 MCAPI void _fetchUserWorlds();
69
70 MCAPI ::Realms::Slot _getSlotAt(int index);
71
72 MCAPI ::ui::ViewRequest _notifyCallback(::Realms::World world);
73
74 MCAPI void _registerBindings();
75
76 MCAPI void _registerEvents();
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCAPI void* $ctor(
83 ::std::shared_ptr<::MainMenuScreenModel> model,
84 ::std::function<void(::Realms::World)> callback,
85 ::SlotSelectedAction selectionAction,
86 ::std::function<void()> onCancelCallback
87 );
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCAPI void $dtor();
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI void $onCreation();
100
101 MCAPI void $onOpen();
102
103 MCAPI void $onDelete();
104
105 MCAPI ::ui::DirtyFlag $tick();
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftableForScreenController();
112
114 // NOLINTEND
115};
Definition ChooseRealmScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition RealmsWorldLoadingDetailsGroup.h:7
Definition Slot.h:7
Definition World.h:7