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 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI ChooseRealmScreenController(
60 ::std::shared_ptr<::MainMenuScreenModel> model,
61 ::std::function<void(::Realms::World)> callback,
62 ::SlotSelectedAction selectionAction,
63 ::std::function<void()> onCancelCallback
64 );
65
66 MCAPI void _fetchUserWorlds();
67
68 MCAPI ::Realms::Slot _getSlotAt(int index);
69
70 MCAPI ::ui::ViewRequest _notifyCallback(::Realms::World world);
71
72 MCAPI void _registerBindings();
73
74 MCAPI void _registerEvents();
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(
81 ::std::shared_ptr<::MainMenuScreenModel> model,
82 ::std::function<void(::Realms::World)> callback,
83 ::SlotSelectedAction selectionAction,
84 ::std::function<void()> onCancelCallback
85 );
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCAPI void $onCreation();
92
93 MCAPI void $onOpen();
94
95 MCAPI void $onDelete();
96
97 MCAPI ::ui::DirtyFlag $tick();
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftableForScreenController();
104
106 // NOLINTEND
107};
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