Begin to prototype many things.
This commit is contained in:
parent
42530ce824
commit
84450d25af
14 changed files with 176 additions and 9 deletions
|
|
@ -7,9 +7,14 @@
|
|||
#include "characteristic/habilete.hpp"
|
||||
#include <random>
|
||||
|
||||
namespace gui {
|
||||
class Gui;
|
||||
}
|
||||
|
||||
namespace character {
|
||||
class CharacterSheet final {
|
||||
private:
|
||||
friend gui::Gui;
|
||||
std::mt19937_64 engine{ std::random_device{ "rdseed" }() };
|
||||
|
||||
std::string caractere{};
|
||||
|
|
@ -70,7 +75,7 @@ namespace character {
|
|||
}
|
||||
};
|
||||
|
||||
void to_json(json &j, const CharacterSheet &billy) {
|
||||
static void to_json(json &j, const CharacterSheet &billy) {
|
||||
j["caractere"] = billy.get_caractere();
|
||||
j["adresse"] = billy.get_adresse();
|
||||
j["endurance"] = billy.get_endurance();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue