Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/module.cc8
-rw-r--r--src/core/module.h7
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