1 #ifndef CORE_EVENTS_GAMESAVE_HPP
2 #define CORE_EVENTS_GAMESAVE_HPP
4 #include <BLIB/Events.hpp>
5 #include <BLIB/Serialization/JSON.hpp>
Core classes and functionality for both the editor and game.
Fired when the game is saving or loading. Allows systems to hook in their data.
GameSaveInitializing(file::GameSave &sv, bool s)
Construct a new Game Save Initializing object.
bool saving
True when saving, false when loading.
file::GameSave & gameSave
Game save being initialized.
Fired when a game save is loaded. Fired after the load is complete.
std::string failMessage
Modules can set this if they encounter a failure that should fail the entire load.
Represents a game save and provides functionality to load and save.