| 41 | * @returns NewsReference. |
| 42 | */ |
| 43 | NewsReference Source::GetNewsReference() const |
| 44 | { |
| 45 | switch (this->type) { |
| 46 | case SourceType::Industry: return static_cast<IndustryID>(this->id); |
| 47 | case SourceType::Town: return static_cast<TownID>(this->id); |
| 48 | default: NOT_REACHED(); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Get the format string for a subsidy Source. |
no test coverage detected