4#if PROTOCOL_VERSION > 340
15 static constexpr std::string_view
packet_name =
"Award Stats";
17#if PROTOCOL_VERSION > 340
19 std::optional<Json::Value>
SerializeStats(
const std::map<std::pair<int, int>,
int>& stats)
const
22 for (
const auto& p : stats)
25 {
"category_id", p.first.first},
26 {
"stats_id", p.first.second},
34#if PROTOCOL_VERSION < 393
#define SERIALIZED_FIELD(Name,...)
static constexpr std::string_view packet_name
SERIALIZED_FIELD(Stats, Internal::CustomType< std::map< std::pair< VarInt, VarInt >, VarInt >, nullptr, nullptr, &THIS::SerializeStats >)
DECLARE_READ_WRITE_SERIALIZE
std::optional< Json::Value > SerializeStats(const std::map< std::pair< int, int >, int > &stats) const
Real class declaration, just a derived class of std::vector<Value>