Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ShareableComponentDefinition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/item/ItemDescriptor.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cereal { struct ReflectionCtx; }
11// clang-format on
12
13namespace SharedTypes::v1_26_60 {
14
16public:
17 // ShareableComponentDefinition inner types declare
18 // clang-format off
19 struct ShareableData;
20 // clang-format on
21
22 // ShareableComponentDefinition inner types define
23 struct ShareableData {
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 24, ::SharedTypes::Legacy::ItemDescriptor> mItemDescriptor;
28 ::ll::TypedStorage<4, 4, int> mWantAmount;
29 ::ll::TypedStorage<4, 4, int> mSurplusAmount;
30 ::ll::TypedStorage<4, 4, int> mMaxAmount;
31 ::ll::TypedStorage<4, 4, int> mPickupLimit;
32 ::ll::TypedStorage<8, 32, ::std::string> mStringCraftInto;
33 ::ll::TypedStorage<4, 4, int> mItemPriority;
34 ::ll::TypedStorage<1, 1, bool> mAdmire;
35 ::ll::TypedStorage<1, 1, bool> mBarter;
36 ::ll::TypedStorage<1, 1, bool> mStoredInInventory;
37 ::ll::TypedStorage<1, 1, bool> mConsumeItem;
38 ::ll::TypedStorage<1, 1, bool> mPickupOnly;
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 ShareableData(ShareableData const&);
44 ShareableData();
45
46 public:
47 // member functions
48 // NOLINTBEGIN
49 MCNAPI ::SharedTypes::v1_26_60::ShareableComponentDefinition::ShareableData&
51
53
55 // NOLINTEND
56
57 public:
58 // static functions
59 // NOLINTBEGIN
60 MCNAPI static void bindType(::cereal::ReflectionCtx& ctx);
61 // NOLINTEND
62
63 public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCNAPI void $dtor();
67 // NOLINTEND
68 };
69
70public:
71 // member variables
72 // NOLINTBEGIN
73 ::ll::TypedStorage<8, 24, ::std::vector<::SharedTypes::v1_26_60::ShareableComponentDefinition::ShareableData>>
74 mItems;
75 ::ll::TypedStorage<1, 1, bool> mShareAllItems;
76 ::ll::TypedStorage<4, 4, int> mAllItemWantAmount;
77 ::ll::TypedStorage<4, 4, int> mAllItemSurplusAmount;
78 ::ll::TypedStorage<4, 4, int> mAllItemMaxAmount;
79 ::ll::TypedStorage<1, 1, bool> mSingularPickup;
80 // NOLINTEND
81
82public:
83 // member functions
84 // NOLINTBEGIN
86
88 // NOLINTEND
89
90public:
91 // static functions
92 // NOLINTBEGIN
93 MCNAPI static void bindType(::cereal::ReflectionCtx& ctx);
94 // NOLINTEND
95
96public:
97 // static variables
98 // NOLINTBEGIN
99 MCNAPI static ::std::string_view const& NAME();
100 // NOLINTEND
101};
102
103} // namespace SharedTypes::v1_26_60
Definition ItemDescriptor.h:15
Definition ShareableComponentDefinition.h:23
MCAPI::SharedTypes::v1_26_60::ShareableComponentDefinition::ShareableData & operator=(::SharedTypes::v1_26_60::ShareableComponentDefinition::ShareableData const &)
MCAPI bool operator==(::SharedTypes::v1_26_60::ShareableComponentDefinition::ShareableData const &) const
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
Definition ShareableComponentDefinition.h:15
static MCAPI ::std::string_view const & NAME()
MCAPI void addShareableByName(::SharedTypes::Legacy::ItemDescriptor const &itemDescriptor)
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
MCAPI void addShareable(::SharedTypes::v1_26_60::ShareableComponentDefinition::ShareableData const &shareable)
Definition ReflectionCtx.h:11
Definition ctx.h:5