|
OpenTTD Source
14.0-beta3
|
Go to the documentation of this file.
13 #ifndef NEWGRF_TOWNNAME_H
14 #define NEWGRF_TOWNNAME_H
48 void DelGRFTownName(uint32_t grfid);
49 void CleanUpGRFTownNames();
50 uint32_t GetGRFTownNameId(uint16_t gen);
51 uint16_t GetGRFTownNameType(uint16_t gen);
52 StringID GetGRFTownNameName(uint16_t gen);
54 const std::vector<StringID> &GetGRFTownNameList();
std::vector< TownNameStyle > styles
Style names defined by the Town Name NewGRF.
uint16_t maxprob
Total probability of all parts.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
byte prob
The relative probability of the following name to appear in the bottom 7 bits.
byte id
Index within partlist for this town name style.
StringID name
String ID of this town name style.
std::vector< NamePartList > partlists[MAX_LISTS]
Lists of town name parts.
std::string text
If probability bit 7 is clear.
uint32_t grfid
GRF ID of NewGRF.
byte bitcount
Number of bits of random seed to use.
byte bitstart
Start of random seed bits to use.
static const uint MAX_LISTS
Maximum number of town name lists that can be defined per GRF.
std::vector< NamePart > parts
List of parts to choose from.
byte id
If probability bit 7 is set.