Pcornat
b759836989
Design : the controller controls data of the character sheet and also saving and reading data.
34 lines
576 B
C++
34 lines
576 B
C++
#ifndef BILLYSHEET_GUI_DATA_HPP
|
|
#define BILLYSHEET_GUI_DATA_HPP
|
|
|
|
#include <spdlog/spdlog.h>
|
|
|
|
namespace character {
|
|
class CharacterSheet;
|
|
}
|
|
|
|
namespace gui {
|
|
class Window;
|
|
|
|
class GuiData final {
|
|
private:
|
|
friend class Gui;
|
|
|
|
Window &window;
|
|
|
|
character::CharacterSheet &billy;
|
|
|
|
public:
|
|
GuiData() = delete;
|
|
|
|
explicit GuiData(Window &wwindow, character::CharacterSheet &billy) : window(wwindow), billy(billy) { SPDLOG_DEBUG("Creating GUI Data"); }
|
|
|
|
~GuiData() noexcept = default;
|
|
|
|
[[nodiscard]] Window &get_window() const;
|
|
};
|
|
}
|
|
|
|
|
|
#endif //BILLYSHEET_GUI_DATA_HPP
|