OpenTTD Source 20250511-master-gf2b48bad79
StationNameInformation Struct Reference

Information to handle station action 0 property 24 correctly. More...

Public Member Functions

bool IsAvailable (StringID str) const
 
void SetUsed (StringID str)
 

Data Fields

std::bitset< STR_SV_STNAME_FALLBACK - STR_SV_STNAME > used_names
 Used default station suffixes.
 
std::bitset< NUM_INDUSTRYTYPESindtypes
 Bit set indicating when an industry type has been found.
 

Detailed Description

Information to handle station action 0 property 24 correctly.

Definition at line 224 of file station_cmd.cpp.

Member Function Documentation

◆ IsAvailable()

bool StationNameInformation::IsAvailable ( StringID  str) const
inline

Definition at line 228 of file station_cmd.cpp.

◆ SetUsed()

void StationNameInformation::SetUsed ( StringID  str)
inline

Definition at line 234 of file station_cmd.cpp.

Field Documentation

◆ indtypes

std::bitset<NUM_INDUSTRYTYPES> StationNameInformation::indtypes

Bit set indicating when an industry type has been found.

Definition at line 226 of file station_cmd.cpp.

Referenced by GenerateStationName().

◆ used_names

std::bitset<STR_SV_STNAME_FALLBACK - STR_SV_STNAME> StationNameInformation::used_names

Used default station suffixes.

Definition at line 225 of file station_cmd.cpp.


The documentation for this struct was generated from the following file: