Working to save and select classes

This commit is contained in:
Pcornat 2022-01-25 19:53:58 +01:00
parent 8e6f0ccc1f
commit acc2f0ca9d
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
6 changed files with 54 additions and 1 deletions

View file

@ -1,12 +1,15 @@
#ifndef BILLYSHEET_GUI_DATA_HPP
#define BILLYSHEET_GUI_DATA_HPP
#include <string_view>
#include <spdlog/spdlog.h>
namespace character {
class CharacterSheet;
}
using namespace std::string_view_literals;
namespace gui {
class Window;
@ -19,6 +22,13 @@ namespace gui {
character::CharacterSheet &billy;
public:
static constexpr std::array classes{
"Guerrier"sv,
"Prudent"sv,
"Paysan"sv,
"Débrouillard"sv
};
GuiData() = delete;
explicit GuiData(Window &wwindow, character::CharacterSheet &billy) : window(wwindow), billy(billy) { SPDLOG_DEBUG("Creating GUI Data"); }