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

Method GetFormat

src/subsidy.cpp:56–63  ·  view source on GitHub ↗

* Get the format string for a subsidy Source. * @returns The format string. */

Source from the content-addressed store, hash-verified

54 * @returns The format string.
55 */
56StringID Source::GetFormat() const
57{
58 switch (this->type) {
59 case SourceType::Industry: return STR_INDUSTRY_NAME;
60 case SourceType::Town: return STR_TOWN_NAME;
61 default: NOT_REACHED();
62 }
63}
64
65/**
66 * Marks subsidy as awarded, creates news and AI event

Callers 4

DrawWidgetMethod · 0.80
AwardToMethod · 0.80
CreateSubsidyFunction · 0.80
subsidy.cppFile · 0.80

Calls 1

NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected