diff options
author | Stijn Buys <ingar@osirion.org> | 2012-01-15 16:53:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-01-15 16:53:03 +0000 |
commit | 945d6f4a31c5e565b1bec23268565569f513842c (patch) | |
tree | b094921b33780ad655dac510d98a635800fa5af4 | |
parent | 9a0b0432cbdb0bfc2578b74d305a091d56152839 (diff) |
Provided core::Module savegame interface.
-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 |