ClassicCityBuilderKit 1.8.8
|
any kind of value a building might have(risks, services, items, ...)
Public Member Functions | |
bool | HasValue (IBuilding building) |
whether the value even applies to the building in question | |
float | GetMaximum (IBuilding building) |
the maximum value this value may get to important for bars that use a ratio | |
float | GetValue (IBuilding building) |
checks for the value the building currently has | |
Vector3 | GetPosition (IBuilding building) |
the world position that the value should be visualized at especially relevant for global values that are not created as a child of the building | |
float CityBuilderCore.IBuildingValue.GetMaximum | ( | IBuilding | building | ) |
the maximum value this value may get to
important for bars that use a ratio
building | the building in question |
Implemented in CityBuilderCore.Item, CityBuilderCore.ItemCategory, CityBuilderCore.ItemSet, CityBuilderCore.Layer, CityBuilderCore.Risk, CityBuilderCore.RiskCategory, CityBuilderCore.Service, CityBuilderCore.ServiceCategory, and CityBuilderCore.ViewBuildingHealthBar.
Vector3 CityBuilderCore.IBuildingValue.GetPosition | ( | IBuilding | building | ) |
the world position that the value should be visualized at
especially relevant for global values that are not created as a child of the building
building | the building in question |
Implemented in CityBuilderCore.Item, CityBuilderCore.ItemCategory, CityBuilderCore.ItemSet, CityBuilderCore.Layer, CityBuilderCore.Risk, CityBuilderCore.RiskCategory, CityBuilderCore.Service, CityBuilderCore.ServiceCategory, and CityBuilderCore.ViewBuildingHealthBar.
float CityBuilderCore.IBuildingValue.GetValue | ( | IBuilding | building | ) |
checks for the value the building currently has
building | the building of which we want to know the value |
Implemented in CityBuilderCore.Item, CityBuilderCore.ItemCategory, CityBuilderCore.ItemSet, CityBuilderCore.Layer, CityBuilderCore.Risk, CityBuilderCore.RiskCategory, CityBuilderCore.Service, CityBuilderCore.ServiceCategory, and CityBuilderCore.ViewBuildingHealthBar.
bool CityBuilderCore.IBuildingValue.HasValue | ( | IBuilding | building | ) |
whether the value even applies to the building in question
building | the building in question |
Implemented in CityBuilderCore.Item, CityBuilderCore.ItemCategory, CityBuilderCore.ItemSet, CityBuilderCore.Layer, CityBuilderCore.Risk, CityBuilderCore.RiskCategory, CityBuilderCore.Service, CityBuilderCore.ServiceCategory, and CityBuilderCore.ViewBuildingHealthBar.