Always functional.

Design : the controller controls data of the character sheet and also saving and reading data.
This commit is contained in:
Pcornat 2022-01-17 22:00:26 +01:00
commit b759836989
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
16 changed files with 8011 additions and 23 deletions

View file

@ -15,6 +15,8 @@ namespace character {
class CharacterSheet final {
private:
friend gui::Gui;
friend class Controller;
std::mt19937_64 engine{ std::random_device{ "rdseed" }() };
std::string caractere{};
@ -62,7 +64,7 @@ namespace character {
[[nodiscard]] std::uint32_t get_money() const { return money; }
friend void from_json(const json &j, CharacterSheet &billy) {
j.at("caracters").get_to(billy.caractere);
j.at("caractere").get_to(billy.caractere);
j.at("adresse").get_to(billy.adresse);
j.at("endurance").get_to(billy.endurance);
j.at("chance").get_to(billy.chance);