11 static constexpr std::string_view
packet_name =
"Map Item Data";
16#if PROTOCOL_VERSION < 477
19#elif PROTOCOL_VERSION < 755
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Scale, char)
SERIALIZED_FIELD(StartZ, Internal::Conditioned< unsigned char, &THIS::HasWidth >)
SERIALIZED_FIELD(StartX, Internal::Conditioned< unsigned char, &THIS::HasWidth >)
SERIALIZED_FIELD(MapId, VarInt)
SERIALIZED_FIELD(Locked, bool)
static constexpr std::string_view packet_name
SERIALIZED_FIELD(MapColors, Internal::Conditioned< std::vector< unsigned char >, &THIS::HasWidth >)
SERIALIZED_FIELD(Decorations, std::optional< std::vector< MapDecoration > >)
SERIALIZED_FIELD(Height, Internal::Conditioned< unsigned char, &THIS::HasWidth >)
DEFINE_CONDITION(HasWidth, GetWidth() > 0)
DECLARE_READ_WRITE_SERIALIZE
SERIALIZED_FIELD(Width, unsigned char)
A type wrapper to conditionally serialize a type.