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