2022-01-08 21:57:17 +01:00
|
|
|
#ifndef BILLYSHEET_GUI_DATA_HPP
|
|
|
|
#define BILLYSHEET_GUI_DATA_HPP
|
|
|
|
|
2022-01-10 22:11:03 +01:00
|
|
|
#include "character_sheet.hpp"
|
2022-01-10 21:16:05 +01:00
|
|
|
#include <spdlog/spdlog.h>
|
2022-01-08 23:40:31 +01:00
|
|
|
|
2022-01-08 21:57:17 +01:00
|
|
|
namespace gui {
|
2022-01-09 00:43:33 +01:00
|
|
|
class Window;
|
|
|
|
|
2022-01-08 21:57:17 +01:00
|
|
|
class GuiData final {
|
|
|
|
private:
|
2022-01-08 23:40:31 +01:00
|
|
|
Window &window;
|
2022-01-08 21:57:17 +01:00
|
|
|
|
2022-01-10 22:11:03 +01:00
|
|
|
character::CharacterSheet billy;
|
2022-01-10 21:16:05 +01:00
|
|
|
|
2022-01-08 21:57:17 +01:00
|
|
|
public:
|
|
|
|
GuiData() = delete;
|
2022-01-08 23:40:31 +01:00
|
|
|
|
2022-01-10 21:16:05 +01:00
|
|
|
explicit GuiData(Window &wwindow) : window(wwindow) { SPDLOG_DEBUG("Creating GUI Data"); }
|
2022-01-08 23:40:31 +01:00
|
|
|
|
2022-01-09 00:43:33 +01:00
|
|
|
[[nodiscard]] Window &get_window() const;
|
|
|
|
|
2022-01-08 21:57:17 +01:00
|
|
|
~GuiData() noexcept = default;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //BILLYSHEET_GUI_DATA_HPP
|