LeviLamina
Loading...
Searching...
No Matches
BeaconContainerManagerController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/containers/managers/controllers/ContainerManagerController.h"
7
8// auto generated forward declare list
9// clang-format off
11struct SelectedSlotInfo;
12struct SlotData;
13// clang-format on
14
15class BeaconContainerManagerController : public ::ContainerManagerController {
16public:
17 // BeaconContainerManagerController inner types define
18 enum class ButtonId : int {
19 IdInvalid = -1,
20 IdConfirm = 0,
21 IdCancel = 1,
22 IdSpeed = 2,
23 IdHaste = 3,
24 IdResist = 4,
25 IdJump = 5,
26 IdStrength = 6,
27 IdRegen = 7,
28 IdExtra = 8,
29 NumButtonId = 9,
30 };
31
32 enum class ButtonStatus : int {
33 Active = 0,
34 Inactive = 1,
35 Hidden = 2,
36 Selected = 3,
37 };
38
39 enum class ClickStatus : int {
40 Ok = 0,
41 Exit = 1,
42 };
43
44public:
45 // member variables
46 // NOLINTBEGIN
47 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::BeaconContainerManagerModel>> mBeaconContainerManagerModel;
48 // NOLINTEND
49
50#ifdef LL_PLAT_S
51#else // LL_PLAT_C
52public:
53 // prevent constructor by default
54 BeaconContainerManagerController();
55
56#endif
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual ~BeaconContainerManagerController() /*override*/ = default;
61
62#ifdef LL_PLAT_S
63 virtual void handlePlaceAll(::SelectedSlotInfo const&, ::SlotData const&) /*override*/;
64#else // LL_PLAT_C
65 virtual void handlePlaceAll(::SelectedSlotInfo const& selected, ::SlotData const& dstSlot) /*override*/;
66#endif
67
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73#ifdef LL_PLAT_C
74 MCNAPI explicit BeaconContainerManagerController(::std::weak_ptr<::BeaconContainerManagerModel> ptrModel);
75
76 MCNAPI void _confirmTransaction();
77
78 MCNAPI void _setupCallbacks();
79
80 MCNAPI ::BeaconContainerManagerController::ClickStatus
81 buttonClicked(::BeaconContainerManagerController::ButtonId id);
82
83 MCNAPI ::std::string getButtonHoverText(::std::string const& buttonName) const;
84
85 MCNAPI ::BeaconContainerManagerController::ButtonStatus getButtonStatus(::std::string const& buttonName) const;
86
87 MCNAPI bool isSecondaryEffect(::std::string const& buttonName) const;
88#endif
89 // NOLINTEND
90
91public:
92 // static functions
93 // NOLINTBEGIN
94#ifdef LL_PLAT_C
95 MCNAPI static ::BeaconContainerManagerController::ButtonId buttonNameToButtonId(::std::string const& buttonName);
96#endif
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
102#ifdef LL_PLAT_C
103 MCNAPI void* $ctor(::std::weak_ptr<::BeaconContainerManagerModel> ptrModel);
104#endif
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110#ifdef LL_PLAT_C
111 MCNAPI void $handlePlaceAll(::SelectedSlotInfo const& selected, ::SlotData const& dstSlot);
112#endif
113
114
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
static MCAPI void ** $vftable()
Definition BeaconContainerManagerModel.h:19
Definition SelectedSlotInfo.h:10
Definition SlotData.h:10