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

Function StationGetSpecialString

src/strings.cpp:1872–1879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1870
1871
1872static void StationGetSpecialString(StringBuilder &builder, StationFacilities x)
1873{
1874 if (x.Test(StationFacility::Train)) builder.PutUtf8(SCC_TRAIN);
1875 if (x.Test(StationFacility::TruckStop)) builder.PutUtf8(SCC_LORRY);
1876 if (x.Test(StationFacility::BusStop)) builder.PutUtf8(SCC_BUS);
1877 if (x.Test(StationFacility::Dock)) builder.PutUtf8(SCC_SHIP);
1878 if (x.Test(StationFacility::Airport)) builder.PutUtf8(SCC_PLANE);
1879}
1880
1881static const std::string_view _silly_company_names[] = {
1882 "Bloggs Brothers",

Callers 1

FormatStringFunction · 0.85

Calls 2

TestMethod · 0.80
PutUtf8Method · 0.80

Tested by

no test coverage detected