* Get the format string for a subsidy Source. * @returns The format string. */
| 54 | * @returns The format string. |
| 55 | */ |
| 56 | StringID 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 |
no test coverage detected