12 #ifndef GAME_INSTANCE_HPP 13 #define GAME_INSTANCE_HPP 15 #include "../script/script_instance.hpp" void LoadDummyScript()
Load the dummy script.
void RegisterAPI()
Register all API functions to the VM.
void Died()
Tell the script it died.
CommandCallback * GetDoCommandCallback()
Get the callback handling DoCommands in case of networking.
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 Script like name, version, etc.
Runtime information about a script like a pointer to the squirrel vm and the current state...
ScriptInfo * FindLibrary(const char *library, int version)
Find a library.
int GetSetting(const char *name)
Get the value of a setting of the current instance.
void CommandCallback(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2)
Define a callback function for the client, after the command is finished.
void Initialize(class GameInfo *info)
Initialize the script and prepare it for its first run.