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
14struct RealmsWorldInfo;
15namespace Realms { struct Slot; }
16namespace Realms { struct World; }
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<1, 1, bool> mIsFetching;
30 ::ll::TypedStorage<8, 24, ::std::vector<::RealmsWorldInfo>> mRealmsWorldsInfo;
31 ::ll::TypedStorage<8, 64, ::std::function<void(::Realms::World)>> mCallback;
32 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancelCallback;
33 ::ll::TypedStorage<4, 4, ::SlotSelectedAction> mSlotSelectedAction;
34 ::ll::TypedStorage<1, 1, bool> mRealmSlotSelected;
35 ::ll::TypedStorage<1, 1, bool> mShowingConfirmationDialog;
36 ::ll::TypedStorage<1, 1, bool> mIsChangingSlot;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 ChooseRealmScreenController();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual void onCreation() /*override*/;
47
48 virtual void onOpen() /*override*/;
49
50 virtual void onDelete() /*override*/;
51
52 virtual ::ui::DirtyFlag tick() /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ChooseRealmScreenController(
59 ::std::shared_ptr<::MainMenuScreenModel> model,
60 ::std::function<void(::Realms::World)> callback,
61 ::SlotSelectedAction selectionAction,
62 ::std::function<void()> onCancelCallback
63 );
64
65 MCAPI ::Realms::Slot _getSlotAt(int index);
66
67 MCAPI ::ui::ViewRequest _notifyCallback(::Realms::World world);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(
74 ::std::shared_ptr<::MainMenuScreenModel> model,
75 ::std::function<void(::Realms::World)> callback,
76 ::SlotSelectedAction selectionAction,
77 ::std::function<void()> onCancelCallback
78 );
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCAPI void $onCreation();
85
86 MCAPI void $onOpen();
87
88 MCAPI void $onDelete();
89
90 MCAPI ::ui::DirtyFlag $tick();
91 // NOLINTEND
92};
Definition ChooseRealmScreenController.h:5
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition RealmsWorldInfo.h:5
Definition Slot.h:7
Definition World.h:7