Botcraft 1.21.4
Loading...
Searching...
No Matches
MerchantOffer.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 451 /* > 1.13.2 */
2#pragma once
3
6#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
8#endif
9
10#include <optional>
11
12namespace ProtocolCraft
13{
15 {
16#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
17 SERIALIZED_FIELD(InputItem1, Slot);
18#else
20#endif
21 SERIALIZED_FIELD(OutputItem, Slot);
22#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
23 SERIALIZED_FIELD(InputItem2, std::optional<Slot>);
24#else
25 SERIALIZED_FIELD(InputItem2, std::optional<ItemCost>);
26#endif
27 SERIALIZED_FIELD(TradeDisabled, bool);
28 SERIALIZED_FIELD(NumberOfTradesUses, int);
29 SERIALIZED_FIELD(MaximumNumberOfTradeUses, int);
31 SERIALIZED_FIELD(SpecialPrice, int);
32 SERIALIZED_FIELD(PriceMultiplier, float);
33 SERIALIZED_FIELD(Demand, int);
34
36 };
37} // ProtocolCraft
38#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(PriceMultiplier, float)
SERIALIZED_FIELD(TradeDisabled, bool)
SERIALIZED_FIELD(InputItem2, std::optional< ItemCost >)
SERIALIZED_FIELD(NumberOfTradesUses, int)
SERIALIZED_FIELD(OutputItem, Slot)
SERIALIZED_FIELD(SpecialPrice, int)
SERIALIZED_FIELD(InputItem1, ItemCost)
SERIALIZED_FIELD(MaximumNumberOfTradeUses, int)