Always functional.
Design : the controller controls data of the character sheet and also saving and reading data.
This commit is contained in:
parent
84450d25af
commit
b759836989
16 changed files with 8011 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue