MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Initialize

Method Initialize

src/game/game_instance.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34{}
35
36void GameInstance::Initialize(GameInfo *info)
37{
38 this->api_version = info->GetAPIVersion();
39
40 /* Register the GameController */
41 SQGSController_Register(*this->engine);
42
43 ScriptInstance::Initialize(info->GetMainScript(), info->GetInstanceName(), OWNER_DEITY);
44}
45
46void GameInstance::RegisterAPI()
47{

Callers

nothing calls this directly

Calls 2

SQGSController_RegisterFunction · 0.85
GetMainScriptMethod · 0.80

Tested by

no test coverage detected