summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 20:56:34 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 20:56:34 +0000
commitf239a6140616340854b2330b75f44abad01ae0a2 (patch)
tree0db054cc972e2638417423a0a89ee17bfbbfc38d /src/game/game.hpp
parentde5494af8ff51e7accfe2c73092873574a9edbf0 (diff)
downloadopenttd-f239a6140616340854b2330b75f44abad01ae0a2.tar.xz
(svn r23609) -Add: save/load all GameScript related material
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index bc9a9d502..b3a87b1f1 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -34,6 +34,11 @@ public:
static void Initialize();
/**
+ * Start up a new GameScript.
+ */
+ static void StartNew();
+
+ /**
* Uninitialize the Game system.
*/
static void Uninitialize(bool keepConfig);
@@ -51,6 +56,16 @@ public:
static void Rescan();
static void ResetConfig();
+ /**
+ * Save data from a GameScript to a savegame.
+ */
+ static void Save();
+
+ /**
+ * Load data for a GameScript from a savegame.
+ */
+ static void Load(int version);
+
/** Wrapper function for GameScanner::GetConsoleList */
static char *GetConsoleList(char *p, const char *last, bool newest_only = false);
/** Wrapper function for GameScanner::GetInfoList */