Peoplemon  0.1.0
Peoplemon 3 game source documentation
GameSave.hpp
Go to the documentation of this file.
1 #ifndef CORE_EVENTS_GAMESAVE_HPP
2 #define CORE_EVENTS_GAMESAVE_HPP
3 
4 #include <BLIB/Events.hpp>
5 #include <BLIB/Serialization/JSON.hpp>
6 
7 namespace core
8 {
9 namespace file
10 {
11 struct GameSave;
12 }
13 
14 namespace event
15 {
25 
27  bool saving;
28 
36  : gameSave(sv)
37  , saving(s) {}
38 };
39 
48  mutable std::string failMessage;
49 };
50 
51 } // namespace event
52 } // namespace core
53 
54 #endif
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.
Definition: GameSave.hpp:22
GameSaveInitializing(file::GameSave &sv, bool s)
Construct a new Game Save Initializing object.
Definition: GameSave.hpp:35
bool saving
True when saving, false when loading.
Definition: GameSave.hpp:27
file::GameSave & gameSave
Game save being initialized.
Definition: GameSave.hpp:24
Fired when a game save is loaded. Fired after the load is complete.
Definition: GameSave.hpp:46
std::string failMessage
Modules can set this if they encounter a failure that should fail the entire load.
Definition: GameSave.hpp:48
Represents a game save and provides functionality to load and save.
Definition: GameSave.hpp:24