(svn r23607) -Add: wire GameScript in all the GUIs

This commit is contained in:
truebrain
2011-12-19 20:56:06 +00:00
parent 17fea560ba
commit f5478b62d1
6 changed files with 208 additions and 73 deletions

View File

@@ -43,6 +43,11 @@ public:
*/
static class GameInstance *GetGameInstance() { return Game::instance; }
/**
* Get the current GameInfo.
*/
static class GameInfo *GetInfo() { return Game::info; }
static void Rescan();
static void ResetConfig();
@@ -55,6 +60,11 @@ public:
/** Wrapper function for GameScannerInfo::FindInfo */
static class GameInfo *FindInfo(const char *name, int version, bool force_exact_match);
/**
* Get the current active instance.
*/
static class GameInstance *GetInstance() { return Game::instance; }
private:
static uint frame_counter; ///< Tick counter for the Game code.
static class GameInstance *instance; ///< Instance to the current active Game.