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

Method RegisterAPI

src/ai/ai_instance.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void AIInstance::RegisterAPI()
52{
53 ScriptInstance::RegisterAPI();
54
55 /* Register all classes */
56 SQAI_RegisterAll(*this->engine);
57
58 if (!this->LoadCompatibilityScripts(AI_DIR, AIInfo::ApiVersions)) this->Died();
59}
60
61void AIInstance::Died()
62{

Callers

nothing calls this directly

Calls 2

DiedMethod · 0.95

Tested by

no test coverage detected