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

Detailed Description

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

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.WalkerRectBar:
CityBuilderCore.WalkerValueBar

Public Member Functions

override void Initialize (Walker walker, IWalkerValue value)
 
- Public Member Functions inherited from CityBuilderCore.WalkerValueBar
bool HasValue ()
 
float GetMaximum ()
 
float GetValue ()
 
Vector3 GetPosition ()
 
float GetRatio ()
 

Public Attributes

TMPro.TMP_Text Text
 
string Format
 
RectTransform Rect
 
bool IsStatic
 

Properties

override bool IsGlobal [get]
 
- Properties inherited from CityBuilderCore.WalkerValueBar
Walker Walker [get]
 
virtual bool IsGlobal [get]
 

Additional Inherited Members

- Protected Attributes inherited from CityBuilderCore.WalkerValueBar
Walker _walker
 
IWalkerValue _value
 

Member Function Documentation

◆ Initialize()

override void CityBuilderCore.WalkerRectBar.Initialize ( Walker walker,
IWalkerValue value )
inlinevirtual

Reimplemented from CityBuilderCore.WalkerValueBar.