LeviLamina
Loading...
Searching...
No Matches
Trade2ContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7#include "mc/world/containers/managers/models/LevelContainerManagerModel.h"
8
9// auto generated forward declare list
10// clang-format off
12class ItemStack;
13class Player;
14struct ActorUniqueID;
15// clang-format on
16
17class Trade2ContainerManagerModel : public ::LevelContainerManagerModel {
18public:
19 // Trade2ContainerManagerModel inner types define
20 enum class Slot : int {
21 Item1 = 0,
22 Item2 = 1,
23 Sell = 2,
24 Count = 3,
25 };
26
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 4, int> mSelectedTrade;
31 ::ll::TypedStorage<4, 4, int> mTraderVariant;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 Trade2ContainerManagerModel();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~Trade2ContainerManagerModel() /*override*/ = default;
42
43 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
44
45 virtual void setSlot(int slot, ::ItemStack const& item, bool) /*override*/;
46
47 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
48
49 virtual bool isValid(float pickRange) /*override*/;
50
51 virtual void broadcastChanges() /*override*/;
52
53 virtual ::ContainerScreenContext _postInit() /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI Trade2ContainerManagerModel(::ContainerID containerId, ::Player& player, ::ActorUniqueID const& uniqueId);
60
61#ifdef LL_PLAT_C
62 MCAPI int getCurrentTradeExp() const;
63
64 MCFOLD ::std::string getDisplayName();
65
66 MCAPI ::std::string getDisplayNameTag() const;
67
68 MCAPI int getEntityTradeTier() const;
69
70 MCAPI ::std::vector<int> getNumberOfTradesByTier() const;
71
72 MCAPI int getTradeExpForCurrentRequirement(uint currentExp) const;
73
74 MCAPI int getTradeExpToNextRequirement(uint currentExp) const;
75
76 MCAPI int getTradeIndex(int tier, int index) const;
77
78 MCAPI bool hasAvailableTradeWithSecondItem() const;
79#endif
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCAPI void* $ctor(::ContainerID containerId, ::Player& player, ::ActorUniqueID const& uniqueId);
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
92
93 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool);
94
95 MCAPI ::ItemStack const& $getSlot(int slot) const;
96
97 MCAPI bool $isValid(float pickRange);
98
99 MCFOLD void $broadcastChanges();
100
101 MCAPI ::ContainerScreenContext $_postInit();
102
103
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCAPI static void** $vftable();
110 // NOLINTEND
111};
Definition ContainerScreenContext.h:16
Definition ItemStack.h:26
Definition LevelContainerManagerModel.h:18
Definition Player.h:129
Definition ActorUniqueID.h:5