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 /src/core/module.h | |
parent | 9a0b0432cbdb0bfc2578b74d305a091d56152839 (diff) |
Provided core::Module savegame interface.
Diffstat (limited to 'src/core/module.h')
-rw-r--r-- | src/core/module.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |