OpenTTD Source
20241120-master-g6d3adc6169
|
Data structure with cached data of towns. More...
#include <town.h>
Public Member Functions | |
auto | operator<=> (const TownCache &) const =default |
Data Fields | |
uint32_t | num_houses |
Amount of houses. | |
uint32_t | population |
Current population of people. | |
TrackedViewportSign | sign |
Location of name sign, UpdateVirtCoord updates this. | |
PartOfSubsidy | part_of_subsidy |
Is this town a source/destination of a subsidy? | |
std::array< uint32_t, HZB_END > | squared_town_zone_radius |
UpdateTownRadius updates this given the house count. | |
BuildingCounts< uint16_t > | building_counts |
The number of each type of building in the town. | |