13 using Ptr = std::shared_ptr<MapDifficulty>;
22 std::u16string characteristic = u
"";
23 std::u16string difficulty = u
"";
30 std::optional<MapParitySummary> paritySummary;
33 CP_SDK_JSON_OPERATORS_INLINE({
34 CP_SDK_JSON_SERIALIZE_FLOAT(njs);
35 CP_SDK_JSON_SERIALIZE_FLOAT(offset);
36 CP_SDK_JSON_SERIALIZE_INT32(notes);
37 CP_SDK_JSON_SERIALIZE_INT32(bombs);
38 CP_SDK_JSON_SERIALIZE_INT32(obstacles);
39 CP_SDK_JSON_SERIALIZE_FLOAT(nps);
40 CP_SDK_JSON_SERIALIZE_FLOAT(length);
41 CP_SDK_JSON_SERIALIZE_STRING(characteristic);
42 CP_SDK_JSON_SERIALIZE_STRING(difficulty);
43 CP_SDK_JSON_SERIALIZE_INT32(events);
44 CP_SDK_JSON_SERIALIZE_BOOL(chroma);
45 CP_SDK_JSON_SERIALIZE_BOOL(me);
46 CP_SDK_JSON_SERIALIZE_BOOL(ne);
47 CP_SDK_JSON_SERIALIZE_BOOL(cinema);
48 CP_SDK_JSON_SERIALIZE_FLOAT(seconds);
49 CP_SDK_JSON_SERIALIZE_OBJECT(paritySummary);
53 CP_SDK_JSON_UNSERIALIZE_FLOAT(njs);
54 CP_SDK_JSON_UNSERIALIZE_FLOAT(offset);
55 CP_SDK_JSON_UNSERIALIZE_INT32(notes);
56 CP_SDK_JSON_UNSERIALIZE_INT32(bombs);
57 CP_SDK_JSON_UNSERIALIZE_INT32(obstacles);
58 CP_SDK_JSON_UNSERIALIZE_FLOAT(nps);
59 CP_SDK_JSON_UNSERIALIZE_FLOAT(length);
60 CP_SDK_JSON_UNSERIALIZE_STRING(characteristic);
61 CP_SDK_JSON_UNSERIALIZE_STRING(difficulty);
62 CP_SDK_JSON_UNSERIALIZE_INT32(events);
63 CP_SDK_JSON_UNSERIALIZE_BOOL(chroma);
64 CP_SDK_JSON_UNSERIALIZE_BOOL(me);
65 CP_SDK_JSON_UNSERIALIZE_BOOL(ne);
66 CP_SDK_JSON_UNSERIALIZE_BOOL(cinema);
67 CP_SDK_JSON_UNSERIALIZE_FLOAT(seconds);
68 CP_SDK_JSON_UNSERIALIZE_OBJECT(paritySummary);