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

Method IsBuildable

src/script/api/script_engine.cpp:39–44  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

37}
38
39/* static */ bool ScriptEngine::IsBuildable(EngineID engine_id)
40{
41 EnforceDeityOrCompanyModeValid(false);
42 const Engine *e = ::Engine::GetIfValid(engine_id);
43 return e != nullptr && ::IsEngineBuildable(engine_id, e->type, ScriptObject::GetCompany());
44}
45
46/* static */ std::optional<std::string> ScriptEngine::GetName(EngineID engine_id)
47{

Callers

nothing calls this directly

Calls 1

IsEngineBuildableFunction · 0.85

Tested by

no test coverage detected