Loading...
Searching...
No Matches
CityBuilderCore.RiskBuildingReplacement Class Reference

Detailed Description

a risk that when executed replaces its building with something else

https://citybuilder.softleitner.com/manual/risks

Inheritance diagram for CityBuilderCore.RiskBuildingReplacement:
CityBuilderCore.Risk CityBuilderCore.KeyedObject CityBuilderCore.IBuildingValue CityBuilderCore.IWalkerValue CityBuilderCore.IKeyed

Public Member Functions

override void Execute (IRiskRecipient risker)
 
- Public Member Functions inherited from CityBuilderCore.Risk
virtual void Resolve (IRiskRecipient risker)
 
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
 
bool HasValue (Walker walker)
 whether the value even applies to the walker in question
 
float GetMaximum (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
 
float GetMultiplier (IBuilding building)
 
void ModifyValue (IBuilding building, float amount)
 

Public Attributes

Building Replacement
 
- Public Attributes inherited from CityBuilderCore.Risk
string Name
 
Sprite Icon
 
string ExecuteNotification
 
string ResolveNotification
 
Layer MultiplierLayer
 
float MultiplierLayerBottom
 
float MultiplierLayerTop
 
- Public Attributes inherited from CityBuilderCore.KeyedObject
string Key
 

Additional Inherited Members

- Static Public Member Functions inherited from CityBuilderCore.KeyedObject
static T GetKeyedObject< T > (string key)
 
- Properties inherited from CityBuilderCore.IKeyed

Member Function Documentation

◆ Execute()

override void CityBuilderCore.RiskBuildingReplacement.Execute ( IRiskRecipient risker)
inlinevirtual

Reimplemented from CityBuilderCore.Risk.