4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
11 * @file townname_type.h
12 * Definition of structures used for generating town names.
15 #ifndef TOWNNAME_TYPE_H
16 #define TOWNNAME_TYPE_H
21 typedef std::set
<std::string
> TownNames
;
24 * Struct holding a parameters used to generate town name.
25 * Speeds things up a bit because these values are computed only once per name generation.
27 struct TownNameParams
{
28 uint32 grfid
; ///< newgrf ID (0 if not used)
29 uint16 type
; ///< town name style
31 /** Empty constructor. */
32 TownNameParams (void) : grfid (0), type (0)
36 TownNameParams (byte town_name
);
39 #endif /* TOWNNAME_TYPE_H */