Codechange: let town name generation use StringBuilder

This commit is contained in:
Rubidium
2023-05-11 21:30:58 +02:00
committed by rubidium42
parent 6a5ab4a9fb
commit 4e39a58c59
4 changed files with 244 additions and 272 deletions

View File

@@ -13,7 +13,6 @@
#include "core/random_func.hpp"
#include "townname_type.h"
char *GenerateTownNameString(char *buf, const char *last, size_t lang, uint32 seed);
char *GetTownName(char *buff, const TownNameParams *par, uint32 townnameparts, const char *last);
char *GetTownName(char *buff, const Town *t, const char *last);
bool VerifyTownName(uint32 r, const TownNameParams *par, TownNames *town_names = nullptr);