OpenTTD Source 20260711-master-g3fb3006dff
GRFTownName Struct Reference

Data Fields

GrfID grfid
 GRF ID of NewGRF.
std::vector< TownNameStylestyles
 Style names defined by the Town Name NewGRF.
std::vector< NamePartListpartlists [MAX_LISTS]
 Lists of town name parts.

Static Public Attributes

static const uint MAX_LISTS = 128
 Maximum number of town name lists that can be defined per GRF.

Detailed Description

Definition at line 36 of file newgrf_townname.h.

Field Documentation

◆ grfid

GrfID GRFTownName::grfid

GRF ID of NewGRF.

Definition at line 39 of file newgrf_townname.h.

Referenced by AddGRFTownName(), DelGRFTownName(), and GetGRFTownName().

◆ MAX_LISTS

const uint GRFTownName::MAX_LISTS = 128
static

Maximum number of town name lists that can be defined per GRF.

Definition at line 37 of file newgrf_townname.h.

Referenced by FeatureTownName().

◆ partlists

std::vector<NamePartList> GRFTownName::partlists[MAX_LISTS]

Lists of town name parts.

Definition at line 41 of file newgrf_townname.h.

Referenced by FeatureTownName().

◆ styles

std::vector<TownNameStyle> GRFTownName::styles

Style names defined by the Town Name NewGRF.

Definition at line 40 of file newgrf_townname.h.

Referenced by FeatureTownName(), GRFTownNameGenerate(), and InitGRFTownGeneratorNames().


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