Begin to prototype many things.

This commit is contained in:
Pcornat 2022-01-17 19:57:00 +01:00
parent 42530ce824
commit 84450d25af
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
14 changed files with 176 additions and 9 deletions

View file

@ -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));
}
}

View file

@ -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));
}
}

View file

@ -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();

View file

@ -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));
}
}

View file

@ -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));
}
}