* Get the grf info. * @return A string with a description of this grf. */
| 93 | * @return A string with a description of this grf. |
| 94 | */ |
| 95 | std::optional<std::string> GRFConfig::GetDescription() const |
| 96 | { |
| 97 | auto str = GetGRFStringFromGRFText(this->info); |
| 98 | if (!str.has_value()) return std::nullopt; |
| 99 | return std::string(*str); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Get the grf url. |
no test coverage detected