OpenTTD Source 20241224-master-gf74b0cf984
townname_type.h File Reference

Definition of structures used for generating town names. More...

#include "newgrf_townname.h"
#include "town_type.h"
#include "string_type.h"

Go to the source code of this file.

Data Structures

struct  TownNameParams
 Struct holding parameters used to generate town name. More...
 

Typedefs

typedef std::set< std::string > TownNames
 

Variables

static constexpr uint BUILTIN_TOWNNAME_GENERATOR_COUNT = SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1
 Number of built-in town name generators.
 

Detailed Description

Definition of structures used for generating town names.

Definition in file townname_type.h.

Typedef Documentation

◆ TownNames

typedef std::set<std::string> TownNames

Definition at line 20 of file townname_type.h.

Variable Documentation

◆ BUILTIN_TOWNNAME_GENERATOR_COUNT

constexpr uint BUILTIN_TOWNNAME_GENERATOR_COUNT = SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1
staticconstexpr

Number of built-in town name generators.

Definition at line 22 of file townname_type.h.

Referenced by GenerateLandscapeWindow::SetStringParameters(), and TownNameParams::TownNameParams().