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

Method SetText

src/script/api/script_industry.cpp:59–67  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

57}
58
59/* static */ bool ScriptIndustry::SetText(IndustryID industry_id, Text *text)
60{
61 ScriptObjectRef counter(text);
62
63 EnforceDeityMode(false);
64 EnforcePrecondition(false, IsValidIndustry(industry_id));
65
66 return ScriptObject::Command<CMD_INDUSTRY_SET_TEXT>::Do(industry_id, text != nullptr ? text->GetEncodedText() : EncodedString{});
67}
68
69/* static */ ScriptIndustry::CargoAcceptState ScriptIndustry::IsCargoAccepted(IndustryID industry_id, CargoType cargo_type)
70{

Callers

nothing calls this directly

Calls 1

GetEncodedTextMethod · 0.80

Tested by

no test coverage detected