|
@@ -25,41 +25,56 @@ class Game {
|
|
|
public:
|
|
|
/**
|
|
|
* Called every game-tick to let Game do something.
|
|
|
*/
|
|
|
static void GameLoop();
|
|
|
|
|
|
/**
|
|
|
* Initialize the Game system.
|
|
|
*/
|
|
|
static void Initialize();
|
|
|
|
|
|
/**
|
|
|
* Start up a new GameScript.
|
|
|
*/
|
|
|
static void StartNew();
|
|
|
|
|
|
/**
|
|
|
* Uninitialize the Game system.
|
|
|
*/
|
|
|
static void Uninitialize(bool keepConfig);
|
|
|
|
|
|
/**
|
|
|
* Get the current GameScript instance.
|
|
|
*/
|
|
|
static class GameInstance *GetGameInstance() { return Game::instance; }
|
|
|
|
|
|
/**
|
|
|
* Get the current GameInfo.
|
|
|
*/
|
|
|
static class GameInfo *GetInfo() { return Game::info; }
|
|
|
|
|
|
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 */
|
|
|
static const ScriptInfoList *GetInfoList();
|
|
|
/** Wrapper function for GameScanner::GetUniqueInfoList */
|
|
|
static const ScriptInfoList *GetUniqueInfoList();
|
|
|
/** Wrapper function for GameScannerInfo::FindInfo */
|
|
|
static class GameInfo *FindInfo(const char *name, int version, bool force_exact_match);
|
|
|
|
|
|
/**
|
|
|
* Get the current active instance.
|
|
|
*/
|