OpenTTD Source: GRFTownName Struct Reference

OpenTTD Source 15.3

Data Fields | Static Public Attributes
GRFTownName Struct Reference

## Data Fields
uint32_t | grfid
| GRF ID of NewGRF.
std::vector< TownNameStyle > | styles
| Style names defined by the Town Name NewGRF.
std::vector< NamePartList > | partlists [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 38 of file newgrf_townname.h.

## Field Documentation

## ◆ grfid

uint32_t GRFTownName::grfid

GRF ID of NewGRF.

Definition at line 41 of file newgrf_townname.h.

## ◆ MAX_LISTS

const uint GRFTownName::MAX_LISTS = 128
| static

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

Definition at line 39 of file newgrf_townname.h.

Referenced by FeatureTownName().

## ◆ partlists

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

Lists of town name parts.

Definition at line 43 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 42 of file newgrf_townname.h.

Referenced by FeatureTownName(), and InitGRFTownGeneratorNames().

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

- src/newgrf_townname.h