|
ClassicCityBuilderKit 1.9.4
|
manages the population and housing system
keeps track of different population migrations, housings and statistics
Public Member Functions | |
| int | GetQuantity (Population population, bool includeReserved=false) |
| calculates the total quantity of a population currently being housed in the city | |
| int | GetCapacity (Population population) |
| calculates the total quantity of a population that can be housed in the city | |
| int | GetRemainingCapacity (Population population) |
| calculated how many more of a population fits into the city | |
| void | AddHomeless (Population population, IHousing housing, int quantity) |
| spawns homeless walkers that carry the population quantity and try to find new housing used when housing downgrades and can no longer hold the quantity it did before | |
| string | SaveData () |
| void | LoadData (string json) |
| void CityBuilderCore.IPopulationManager.AddHomeless | ( | Population | population, |
| IHousing | housing, | ||
| int | quantity ) |
spawns homeless walkers that carry the population quantity and try to find new housing
used when housing downgrades and can no longer hold the quantity it did before
| population | the type of population(plebs, aristocrats, ...) |
| housing | the housing that downgraded |
| quantity | quantity that no longer fits into the housing |
Implemented in CityBuilderCore.DefaultPopulationManager.
| int CityBuilderCore.IPopulationManager.GetCapacity | ( | Population | population | ) |
calculates the total quantity of a population that can be housed in the city
| population | the type of population(plebs, aristocrats, ...) |
Implemented in CityBuilderCore.DefaultPopulationManager.
| int CityBuilderCore.IPopulationManager.GetQuantity | ( | Population | population, |
| bool | includeReserved = false ) |
calculates the total quantity of a population currently being housed in the city
| population | the type of population(plebs, aristocrats, ...) |
| includeReserved | whether migrants that have not arrived at their housing should be counted |
Implemented in CityBuilderCore.DefaultPopulationManager.
| int CityBuilderCore.IPopulationManager.GetRemainingCapacity | ( | Population | population | ) |
calculated how many more of a population fits into the city
| population | the type of population(plebs, aristocrats, ...) |
Implemented in CityBuilderCore.DefaultPopulationManager.