diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/module.cc | 8 | ||||
-rw-r--r-- | src/core/module.h | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/core/module.cc b/src/core/module.cc index 18c318e..e6f2e9d 100644 --- a/src/core/module.cc +++ b/src/core/module.cc @@ -52,4 +52,12 @@ void Module::player_save(Player *player) { } +void Module::game_load(core::Player *player, filesystem::IniFile & inifile) +{ +} + +void Module::game_save(core::Player *player, std::ostream & os) +{ +} + } diff --git a/src/core/module.h b/src/core/module.h index 51b1824..72a1939 100644 --- a/src/core/module.h +++ b/src/core/module.h @@ -8,6 +8,7 @@ #define __INCLUDED_CORE_MODULE_H__ #include <string> +#include "filesystem/inifile.h" #include "core/player.h" namespace core @@ -69,6 +70,12 @@ public: static inline Module *instance() { return module_instance; } + + /// singleplayer load game function + virtual void game_load(core::Player *player, filesystem::IniFile & inifile); + + /// singleplayer save game function + virtual void game_save(core::Player *player, std::ostream & os); protected: /// abort a running module |