Better serializer

This commit is contained in:
Pcornat 2022-01-14 23:03:22 +01:00
parent 4fbfbdb273
commit 3691042b6e
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0

View File

@ -39,10 +39,10 @@ namespace character::characteristic {
};
void to_json(json &j, const Characteristic &charac) {
j.emplace("base", charac.get_base());
j.emplace("carac", charac.get_carac());
j.emplace("materiel", charac.get_materiel());
j.emplace("additional", charac.get_additional());
j["base"] = charac.get_base();
j["carac"] = charac.get_carac();
j["materiel"] = charac.get_materiel();
j["additional"] = charac.get_additional();
}
}