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

Detailed Description

visualizes a building value by sizing a rect to its ratio and writing the value in a text field
used for the building health bar in the Defense demo

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.BuildingRectBar:
CityBuilderCore.BuildingValueBar

Public Member Functions

override void Initialize (IBuilding building, IBuildingValue value)
 
- Public Member Functions inherited from CityBuilderCore.BuildingValueBar
bool HasValue ()
 
float GetMaximum ()
 
float GetValue ()
 
Vector3 GetPosition ()
 
float GetRatio ()
 

Public Attributes

TMPro.TMP_Text Text
 
string Format
 
RectTransform Rect
 

Properties

override bool IsGlobal [get]
 
- Properties inherited from CityBuilderCore.BuildingValueBar
IBuilding Building [get]
 
virtual bool IsGlobal [get]
 

Additional Inherited Members

- Protected Attributes inherited from CityBuilderCore.BuildingValueBar
IBuilding _building
 
IBuildingValue _value
 

Member Function Documentation

◆ Initialize()

override void CityBuilderCore.BuildingRectBar.Initialize ( IBuilding building,
IBuildingValue value )
inlinevirtual

Reimplemented from CityBuilderCore.BuildingValueBar.