15 #include "../script/api/script_event_types.hpp"
65 static void NewEvent(
class ScriptEvent *event);
78 static void ResetConfig();
86 static void GetConsoleList(std::back_insert_iterator<std::string> &output_iterator,
bool newest_only);
105 static bool HasGameLibrary(
const ContentInfo *ci,
bool md5sum);
All static information from an Game like name, version, etc.
Runtime information about a game script like a pointer to the squirrel vm and the current state.
All static information from an Game library like name, version, etc.
static void StartNew()
Start up a new GameScript.
static class GameInfo * info
Current selected GameInfo.
static class GameInfo * FindInfo(const std::string &name, int version, bool force_exact_match)
Wrapper function for GameScannerInfo::FindInfo.
static class GameInstance * GetGameInstance()
Get the current GameScript instance.
static GameScannerLibrary * GetScannerLibrary()
Gets the ScriptScanner instance that is used to find Game Libraries.
static void Unpause()
Resume execution of the Game Script.
static bool IsPaused()
Checks if the Game Script is paused.
static uint frame_counter
Tick counter for the Game code.
static void Save()
Save data from a GameScript to a savegame.
static class GameScannerInfo * scanner_info
Scanner for Game scripts.
static class GameInstance * instance
Instance to the current active Game.
static class GameScannerLibrary * scanner_library
Scanner for GS Libraries.
static bool HasGame(const struct ContentInfo *ci, bool md5sum)
Wrapper function for GameScanner::HasGame.
static class GameInstance * GetInstance()
Get the current active instance.
static class GameLibrary * FindLibrary(const std::string &library, int version)
Wrapper function for GameScanner::FindLibrary.
static const ScriptInfoList * GetUniqueInfoList()
Wrapper function for GameScanner::GetUniqueInfoList.
static void Pause()
Suspends the Game Script and then pause the execution of the script.
static void NewEvent(class ScriptEvent *event)
Queue a new event for a Game Script.
static void GameLoop()
Called every game-tick to let Game do something.
static void GetConsoleList(std::back_insert_iterator< std::string > &output_iterator, bool newest_only)
Wrapper function for GameScanner::GetConsoleList.
static void GetConsoleLibraryList(std::back_insert_iterator< std::string > &output_iterator)
Wrapper function for GameScanner::GetConsoleLibraryList.
static void Uninitialize(bool keepConfig)
Uninitialize the Game system.
static class GameInfo * GetInfo()
Get the current GameInfo.
static const ScriptInfoList * GetInfoList()
Wrapper function for GameScanner::GetInfoList.
static void Initialize()
Initialize the Game system.
static GameScannerInfo * GetScannerInfo()
Gets the ScriptScanner instance that is used to find Game scripts.
int version
Version of the script.
std::string name
Full name of the script.
declarations of the class for Game scanner
std::map< std::string, class ScriptInfo *, CaseInsensitiveComparator > ScriptInfoList
Type for the list of scripts.
Container for all important information about a piece of content.