Adding critique getter
This commit is contained in:
parent
698aed8860
commit
5632d417b8
1 changed files with 4 additions and 0 deletions
|
|
@ -92,6 +92,8 @@ namespace character {
|
|||
|
||||
[[nodiscard]] std::uint32_t get_damage() const { return damage; }
|
||||
|
||||
[[nodiscard]] std::uint32_t get_critique() const { return critique; }
|
||||
|
||||
[[nodiscard]] std::uint32_t get_glory() const { return glory; }
|
||||
|
||||
[[nodiscard]] std::uint32_t get_money() const { return money; }
|
||||
|
|
@ -111,6 +113,7 @@ namespace character {
|
|||
j.at("health_point").get_to(billy.health_point);
|
||||
j.at("armor").get_to(billy.armor);
|
||||
j.at("damage").get_to(billy.damage);
|
||||
j.at("critique").get_to(billy.critique);
|
||||
j.at("glory").get_to(billy.glory);
|
||||
j.at("money").get_to(billy.money);
|
||||
j.at("nb_weapons").get_to(billy.nb_weapons);
|
||||
|
|
@ -130,6 +133,7 @@ namespace character {
|
|||
j.emplace("health_point", billy.get_health_point());
|
||||
j.emplace("armor", billy.get_armor());
|
||||
j.emplace("damage", billy.get_damage());
|
||||
j.emplace("critique", billy.get_critique());
|
||||
j.emplace("glory", billy.get_glory());
|
||||
j.emplace("money", billy.get_money());
|
||||
j.emplace("nb_weapons", billy.get_nb_weapons());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue