Go to the documentation of this file.
10 #ifndef TOWNNAME_FUNC_H
11 #define TOWNNAME_FUNC_H
19 bool GenerateTownName(uint32 *townnameparts, TownNames *town_names =
nullptr);
char * GenerateTownNameString(char *buf, const char *last, size_t lang, uint32 seed)
Generates town name from given seed.
char * GetTownName(char *buff, const TownNameParams *par, uint32 townnameparts, const char *last)
Fills buffer with specified town name.
Struct holding parameters used to generate town name.
bool VerifyTownName(uint32 r, const TownNameParams *par, TownNames *town_names=nullptr)
Verifies the town name is valid and unique.
bool GenerateTownName(uint32 *townnameparts, TownNames *town_names=nullptr)
Generates valid town name.