Submodule for JSON added.

Menu data and menu in their own folder.
This commit is contained in:
Pcornat 2022-01-14 22:06:07 +01:00
parent 27c571a6b9
commit 9142896237
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
12 changed files with 106 additions and 60 deletions

View file

@ -2,32 +2,28 @@
#define BILLYSHEET_GUI_DATA_HPP
#include "character_sheet.hpp"
#include <filesystem>
#include <spdlog/spdlog.h>
namespace fs = std::filesystem;
namespace gui {
class Window;
class GuiData final {
private:
friend class Gui;
Window &window;
character::CharacterSheet billy;
// Is it the right place here for both ? Not sure.
fs::path save_path{ "./" };
std::string filename{ "character_sheet.json" };
public:
GuiData() = delete;
explicit GuiData(Window &wwindow) : window(wwindow) { SPDLOG_DEBUG("Creating GUI Data"); }
[[nodiscard]] Window &get_window() const;
~GuiData() noexcept = default;
[[nodiscard]] Window &get_window() const;
};
}