OpenTTD Source: TownCache Struct Reference

OpenTTD Source 14.1

Data Fields
TownCache Struct Reference

Data structure with cached data of towns. More...

`#include <town.h>`

## 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?
uint32_t | squared_town_zone_radius [HZB_END]
| UpdateTownRadius updates this given the house count.
BuildingCounts< uint16_t > | building_counts
| The number of each type of building in the town.

## Detailed Description

Data structure with cached data of towns.

Definition at line 40 of file town.h.

The documentation for this struct was generated from the following file:

- src/town.h