OpenTTD Source
20241108-master-g80f628063a
|
Implementation of Action 0F "universal holder" structure and functions. More...
#include "stdafx.h"
#include "newgrf_townname.h"
#include "core/alloc_func.hpp"
#include "string_func.h"
#include "strings_internal.h"
#include "table/strings.h"
#include "safeguards.h"
Go to the source code of this file.
Functions | |
GRFTownName * | GetGRFTownName (uint32_t grfid) |
GRFTownName * | AddGRFTownName (uint32_t grfid) |
void | DelGRFTownName (uint32_t grfid) |
static void | RandomPart (StringBuilder &builder, const GRFTownName *t, uint32_t seed, uint8_t id) |
void | GRFTownNameGenerate (StringBuilder &builder, uint32_t grfid, uint16_t gen, uint32_t seed) |
void | InitGRFTownGeneratorNames () |
Allocate memory for the NewGRF town names. | |
const std::vector< StringID > & | GetGRFTownNameList () |
StringID | GetGRFTownNameName (uint16_t gen) |
void | CleanUpGRFTownNames () |
uint32_t | GetGRFTownNameId (uint16_t gen) |
uint16_t | GetGRFTownNameType (uint16_t gen) |
Variables | |
static std::vector< GRFTownName > | _grf_townnames |
static std::vector< StringID > | _grf_townname_names |
Implementation of Action 0F "universal holder" structure and functions.
This file implements a linked-lists of townname generators, holding everything that the newgrf action 0F will send over to OpenTTD.
Definition in file newgrf_townname.cpp.