Deleting useless fields and enum.
This commit is contained in:
parent
a164593cd8
commit
bde031f393
@ -12,28 +12,12 @@ using namespace std::string_view_literals;
|
|||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
||||||
enum class characChanged {
|
|
||||||
None,
|
|
||||||
Adresse,
|
|
||||||
Endurance,
|
|
||||||
Chance,
|
|
||||||
Habilete
|
|
||||||
};
|
|
||||||
|
|
||||||
class GuiData final {
|
class GuiData final {
|
||||||
private:
|
private:
|
||||||
friend class Gui;
|
friend class Gui;
|
||||||
|
|
||||||
character::CharacterSheet &billy;
|
character::CharacterSheet &billy;
|
||||||
|
|
||||||
std::pair<characChanged, std::uint32_t> base{ characChanged::None, 0 };
|
|
||||||
|
|
||||||
std::pair<characChanged, std::uint32_t> carac{ characChanged::None, 0 };
|
|
||||||
|
|
||||||
std::pair<characChanged, std::uint32_t> materiel{ characChanged::None, 0 };
|
|
||||||
|
|
||||||
std::pair<characChanged, std::uint32_t> additional{ characChanged::None, 0 };
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static constexpr std::array classes{
|
static constexpr std::array classes{
|
||||||
"Guerrier"sv,
|
"Guerrier"sv,
|
||||||
@ -47,14 +31,6 @@ namespace gui {
|
|||||||
explicit GuiData(character::CharacterSheet &billy) noexcept: billy(billy) { SPDLOG_DEBUG("Creating GUI Data"); }
|
explicit GuiData(character::CharacterSheet &billy) noexcept: billy(billy) { SPDLOG_DEBUG("Creating GUI Data"); }
|
||||||
|
|
||||||
~GuiData() noexcept = default;
|
~GuiData() noexcept = default;
|
||||||
|
|
||||||
[[nodiscard]] const std::pair<characChanged, std::uint32_t> &get_base() const { return base; }
|
|
||||||
|
|
||||||
[[nodiscard]] const std::pair<characChanged, std::uint32_t> &get_carac() const { return carac; }
|
|
||||||
|
|
||||||
[[nodiscard]] const std::pair<characChanged, std::uint32_t> &get_materiel() const { return materiel; }
|
|
||||||
|
|
||||||
[[nodiscard]] const std::pair<characChanged, std::uint32_t> &get_additional() const { return additional; }
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user