2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2012-01-01 17:22:32 +00:00
|
|
|
/** @file townname_func.h %Town name generator stuff. */
|
2007-03-21 03:06:21 +00:00
|
|
|
|
2009-09-22 13:54:54 +00:00
|
|
|
#ifndef TOWNNAME_FUNC_H
|
|
|
|
#define TOWNNAME_FUNC_H
|
2005-02-05 23:03:12 +00:00
|
|
|
|
2011-05-01 19:14:12 +00:00
|
|
|
#include "townname_type.h"
|
|
|
|
|
2009-03-16 10:51:49 +00:00
|
|
|
char *GenerateTownNameString(char *buf, const char *last, size_t lang, uint32 seed);
|
2011-05-01 19:14:12 +00:00
|
|
|
char *GetTownName(char *buff, const TownNameParams *par, uint32 townnameparts, const char *last);
|
|
|
|
char *GetTownName(char *buff, const Town *t, const char *last);
|
2019-04-10 21:07:06 +00:00
|
|
|
bool VerifyTownName(uint32 r, const TownNameParams *par, TownNames *town_names = nullptr);
|
|
|
|
bool GenerateTownName(uint32 *townnameparts, TownNames *town_names = nullptr);
|
2005-02-05 23:03:12 +00:00
|
|
|
|
2009-09-22 13:54:54 +00:00
|
|
|
#endif /* TOWNNAME_FUNC_H */
|