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

Method GetDescription

src/newgrf_config.cpp:95–100  ·  view source on GitHub ↗

* Get the grf info. * @return A string with a description of this grf. */

Source from the content-addressed store, hash-verified

93 * @return A string with a description of this grf.
94 */
95std::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.

Callers 6

ShowNewGRFInfoFunction · 0.45
TagNameFilterMethod · 0.45
GetDriversInfoMethod · 0.45
GetSetsListMethod · 0.45
DrawWidgetMethod · 0.45
OnResizeMethod · 0.45

Calls 2

GetGRFStringFromGRFTextFunction · 0.85
stringFunction · 0.85

Tested by

no test coverage detected