Loading...
Searching...
No Matches
CityBuilderCore.IWalkerValue Interface Reference

Detailed Description

any kind of value a walker might have(items, ...)

Inheritance diagram for CityBuilderCore.IWalkerValue:
CityBuilderCore.Item CityBuilderCore.ItemCategory CityBuilderCore.ItemSet CityBuilderCore.Layer CityBuilderCore.Risk CityBuilderCore.RiskCategory CityBuilderCore.Service CityBuilderCore.ServiceCategory CityBuilderCore.ViewWalkerHealthBar CityBuilderTown.TownViewWalkerEnergyBar CityBuilderTown.TownViewWalkerFoodBar CityBuilderTown.TownViewWalkerWarmthBar

Public Member Functions

bool HasValue (Walker walker)
 whether the value even applies to the walker in question
 
float GetMaximum (Walker walker)
 the maximum value this value may get to
for example storage capacity for item quantities
important for bars that use a ratio
 
float GetValue (Walker walker)
 checks for the value the walker currently has
 
Vector3 GetPosition (Walker walker)
 the world position that the value should be visualized at
especially relevant for global values that are not created as a child of the walker
 

Member Function Documentation

◆ GetMaximum()

float CityBuilderCore.IWalkerValue.GetMaximum ( Walker walker)

the maximum value this value may get to
for example storage capacity for item quantities
important for bars that use a ratio

Parameters
walkerthe walker in question
Returns
max value the walker might ever return

Implemented in CityBuilderCore.Item, CityBuilderCore.ItemCategory, CityBuilderCore.ItemSet, CityBuilderCore.Layer, CityBuilderCore.Risk, CityBuilderCore.RiskCategory, CityBuilderCore.Service, CityBuilderCore.ServiceCategory, CityBuilderCore.ViewWalkerHealthBar, CityBuilderTown.TownViewWalkerEnergyBar, CityBuilderTown.TownViewWalkerFoodBar, and CityBuilderTown.TownViewWalkerWarmthBar.

◆ GetPosition()

Vector3 CityBuilderCore.IWalkerValue.GetPosition ( Walker walker)

the world position that the value should be visualized at
especially relevant for global values that are not created as a child of the walker

Parameters
walkerthe walker in question
Returns
where the value should be visualized

Implemented in CityBuilderCore.Item, CityBuilderCore.ItemCategory, CityBuilderCore.ItemSet, CityBuilderCore.Layer, CityBuilderCore.Risk, CityBuilderCore.RiskCategory, CityBuilderCore.Service, CityBuilderCore.ServiceCategory, CityBuilderCore.ViewWalkerHealthBar, CityBuilderTown.TownViewWalkerEnergyBar, CityBuilderTown.TownViewWalkerFoodBar, and CityBuilderTown.TownViewWalkerWarmthBar.

◆ GetValue()

float CityBuilderCore.IWalkerValue.GetValue ( Walker walker)

◆ HasValue()

bool CityBuilderCore.IWalkerValue.HasValue ( Walker walker)