OpenTTD Source  20241108-master-g80f628063a
TownCache Struct Reference

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.
 

Detailed Description

Data structure with cached data of towns.

Definition at line 42 of file town.h.


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