LeviLamina
Loading...
Searching...
No Matches
ActiveBundleData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/controllers/BundleTooltipLayoutData.h"
7#include "mc/world/containers/SlotData.h"
8
9// auto generated forward declare list
10// clang-format off
12class ItemStackBase;
13// clang-format on
14
15struct ActiveBundleData {
16public:
17 // ActiveBundleData inner types define
18 enum class BundleState : int {
19 Inactive = 0,
20 Active = 1,
21 Hovered = 2,
22 };
23
24 enum class TooltipDirection : int {
25 SouthEast = 0,
26 NorthEast = 1,
27 NorthWest = 2,
28 SouthWest = 3,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<1, 1, bool> mMinimizedTooltip;
35 ::ll::TypedStorage<4, 8, ::std::optional<int>> mSelectedCollectionIndex;
36 ::ll::TypedStorage<8, 40, ::SlotData> mSlotData;
37 ::ll::TypedStorage<4, 4, ::ActiveBundleData::BundleState> mBundleState;
38 ::ll::TypedStorage<8, 80, ::std::optional<::BundleTooltipLayoutData>> mCachedBundleTooltipLayoutData;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ::BundleTooltipLayoutData const& getBundleTooltipLayoutData(
45 ::ItemStackBase const& bundleItem,
46 ::ContainerManagerController& containerManagerController
47 ) const;
48
49 MCAPI int getSelectedItemContainerIndex(::BundleTooltipLayoutData const& tooltipLayoutData) const;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static ::BundleTooltipLayoutData _calculateBundleTooltipLayoutData(
56 ::ItemStackBase const& bundleItem,
57 ::ContainerManagerController& containerManagerController
58 );
59 // NOLINTEND
60};
Definition ContainerManagerController.h:47
Definition ItemStackBase.h:44
Definition ActiveBundleData.h:5