Always functional.

Design : the controller controls data of the character sheet and also saving and reading data.
This commit is contained in:
Pcornat 2022-01-17 22:00:26 +01:00
parent 84450d25af
commit b759836989
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
16 changed files with 8011 additions and 23 deletions

View file

@ -1,9 +1,12 @@
#ifndef BILLYSHEET_GUI_DATA_HPP
#define BILLYSHEET_GUI_DATA_HPP
#include "character_sheet.hpp"
#include <spdlog/spdlog.h>
namespace character {
class CharacterSheet;
}
namespace gui {
class Window;
@ -13,13 +16,12 @@ namespace gui {
Window &window;
character::CharacterSheet billy;
character::CharacterSheet &billy;
public:
GuiData() = delete;
explicit GuiData(Window &wwindow) : window(wwindow) { SPDLOG_DEBUG("Creating GUI Data"); }
explicit GuiData(Window &wwindow, character::CharacterSheet &billy) : window(wwindow), billy(billy) { SPDLOG_DEBUG("Creating GUI Data"); }
~GuiData() noexcept = default;