ClassicCityBuilderKit 1.8.8
|
a building component that houses populations(a hut that provides housing for 20 plebs, a villa that provides housing for 5 snobs)
Public Member Functions | |
int | GetQuantity (Population population, bool includeReserved=false) |
checks how many people of a population are housed in the component | |
int | GetCapacity (Population population) |
checks how many people of a population can be housed in the component | |
int | GetRemainingCapacity (Population population) |
checks how many more people of the population would fit in the housing | |
int | Reserve (Population population, int quantity) |
reserves space in the housing for inhabitants that are walking to it this is done to make sure there is still place when they arrive otherwise all immigrants in THREE would walk to the same housing until the first one arrives | |
int | Inhabit (Population population, int quantity) |
removes reserved quantity and adds it to the housing | |
int | Abandon (Population population, int quantity) |
removes a quantity of population from the housing | |
void | Kill (float ratio) |
removes a portion of the housed quantities across populations | |
Additional Inherited Members | |
Properties inherited from CityBuilderCore.IBuildingTrait< IHousing > | |
BuildingComponentReference< T > | Reference [get, set] |
reference to the building trait, use when the building might be replaced and when the reference has to be saved | |
int CityBuilderCore.IHousing.Abandon | ( | Population | population, |
int | quantity ) |
removes a quantity of population from the housing
population | population to remove |
quantity | quantity to remove |
Implemented in CityBuilderCore.HousingComponent, and CityBuilderCore.HousingPlaceholderComponent.
int CityBuilderCore.IHousing.GetCapacity | ( | Population | population | ) |
checks how many people of a population can be housed in the component
population | the population to check |
Implemented in CityBuilderCore.HousingComponent, and CityBuilderCore.HousingPlaceholderComponent.
int CityBuilderCore.IHousing.GetQuantity | ( | Population | population, |
bool | includeReserved = false ) |
checks how many people of a population are housed in the component
population | the population to check |
includeReserved | whether inhabitants that have not arrived at the housing should be counted |
Implemented in CityBuilderCore.HousingComponent, and CityBuilderCore.HousingPlaceholderComponent.
int CityBuilderCore.IHousing.GetRemainingCapacity | ( | Population | population | ) |
checks how many more people of the population would fit in the housing
population | the relevant population |
Implemented in CityBuilderCore.HousingComponent, and CityBuilderCore.HousingPlaceholderComponent.
int CityBuilderCore.IHousing.Inhabit | ( | Population | population, |
int | quantity ) |
removes reserved quantity and adds it to the housing
population | population to add |
quantity | quantity to add |
Implemented in CityBuilderCore.HousingComponent, and CityBuilderCore.HousingPlaceholderComponent.
void CityBuilderCore.IHousing.Kill | ( | float | ratio | ) |
removes a portion of the housed quantities across populations
ratio | 0-1 |
Implemented in CityBuilderCore.HousingComponent, and CityBuilderCore.HousingPlaceholderComponent.
int CityBuilderCore.IHousing.Reserve | ( | Population | population, |
int | quantity ) |
reserves space in the housing for inhabitants that are walking to it
this is done to make sure there is still place when they arrive
otherwise all immigrants in THREE would walk to the same housing until the first one arrives
population | the population to reserve |
quantity | how many to reserve |
Implemented in CityBuilderCore.HousingComponent, and CityBuilderCore.HousingPlaceholderComponent.