Better serializer
This commit is contained in:
parent
4fbfbdb273
commit
3691042b6e
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user