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

Method LoadDummyScript

src/ai/ai_instance.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void AIInstance::LoadDummyScript()
85{
86 ScriptAllocatorScope alloc_scope(this->engine.get());
87 Script_CreateDummy(this->engine->GetVM(), STR_ERROR_AI_NO_AI_FOUND, "AI");
88}
89
90int AIInstance::GetSetting(const std::string &name)
91{

Callers 1

InitializeMethod · 0.45

Calls 3

Script_CreateDummyFunction · 0.85
GetVMMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected