|
OpenTTD Source
1.10.0-RC1
|
Struct holding parameters used to generate town name. More...
#include <townname_type.h>
Public Member Functions | |
| TownNameParams (byte town_name) | |
| Initializes this struct from language ID. More... | |
| TownNameParams (const Town *t) | |
| Initializes this struct from town data. More... | |
Data Fields | |
| uint32 | grfid |
| newgrf ID (0 if not used) | |
| uint16 | type |
| town name style | |
Struct holding parameters used to generate town name.
Speeds things up a bit because these values are computed only once per name generation.
Definition at line 27 of file townname_type.h.
|
inline |
Initializes this struct from language ID.
| town_name | town name 'language' ID |
Definition at line 35 of file townname_type.h.
References _nb_orig_names.
| TownNameParams::TownNameParams | ( | const Town * | t | ) |
Initializes this struct from town data.
| t | town for which we will be printing name later |
Definition at line 28 of file townname.cpp.