Begin to prototype many things.
This commit is contained in:
parent
42530ce824
commit
84450d25af
14 changed files with 176 additions and 9 deletions
|
@ -18,7 +18,7 @@ namespace character::characteristic {
|
|||
}
|
||||
};
|
||||
|
||||
void to_json(json &j, const Adresse &adresse) {
|
||||
static void to_json(json &j, const Adresse &adresse) {
|
||||
to_json(j, static_cast<Characteristic>(adresse));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace character::characteristic {
|
|||
}
|
||||
};
|
||||
|
||||
void to_json(json &j, const Chance &chance) {
|
||||
static void to_json(json &j, const Chance &chance) {
|
||||
to_json(j, static_cast<Characteristic>(chance));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace character::characteristic {
|
|||
}
|
||||
};
|
||||
|
||||
void to_json(json &j, const Characteristic &charac) {
|
||||
static void to_json(json &j, const Characteristic &charac) {
|
||||
j["base"] = charac.get_base();
|
||||
j["carac"] = charac.get_carac();
|
||||
j["materiel"] = charac.get_materiel();
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace character::characteristic {
|
|||
}
|
||||
};
|
||||
|
||||
void to_json(json &j, const Endurance &endurance) {
|
||||
static void to_json(json &j, const Endurance &endurance) {
|
||||
to_json(j, static_cast<Characteristic>(endurance));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace character::characteristic {
|
|||
}
|
||||
};
|
||||
|
||||
void to_json(json &j, const Habilete &habilete) {
|
||||
static void to_json(json &j, const Habilete &habilete) {
|
||||
to_json(j, static_cast<Characteristic>(habilete));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue