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

Detailed Description

roams around and reduces the risks of IRiskRecipient while it is in range
when a fire breaks out in its vicinity(collider enter) it runs there and tries to extinguish it

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

Inheritance diagram for CityBuilderCore.FireWalker:
CityBuilderCore.RiskWalker CityBuilderCore.BuildingComponentWalker< IRiskRecipient >

Classes

class  FireWalkerData
 

Public Types

enum  FireWalkerState { Prevention = 0 , ToFire = 1 , Extinguishing = 2 , FromFire = 3 }
 

Public Member Functions

override string SaveData ()
 
override void LoadData (string json)
 

Public Attributes

PathType ExtinguishPathType
 
Object ExtinguisPathTag
 
float ExtinguishAmount
 
float ExtinguishSpeed
 
BoolEvent IsRunningChanged
 
BoolEvent IsExtinguishingChanged
 
- Public Attributes inherited from CityBuilderCore.RiskWalker
Risk Risk
 
float Amount = 100f
 

Protected Member Functions

override void Update ()
 
override void onMoved (Vector2Int position)
 
override void onFinished ()
 
- Protected Member Functions inherited from CityBuilderCore.RiskWalker
override void onComponentRemaining (IRiskRecipient risker)
 
- Protected Member Functions inherited from CityBuilderCore.BuildingComponentWalker< IRiskRecipient >
override void onEntered (IBuilding building)
 called when the building first enters the walkers area
 
override void onRemaining (IBuilding building)
 called on every frame the walkers area contains the building
 
virtual void onComponentEntered (T buildingComponent)
 called when the building component first enters the walkers area
 
virtual void onComponentRemaining (T buildingComponent)
 called on every frame the walkers area contains the building component
 

Properties

override float Speed [get]