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

Detailed Description

helper class for Walker that hold the current status when it is just waiting for a set time

Classes

class  WaitingData
 

Public Member Functions

 WaitingState (float setTime)
 
IEnumerator Wait ()
 
void Cancel ()
 
WaitingData GetData ()
 

Static Public Member Functions

static WaitingState FromData (WaitingData data)
 

Properties

float SetTime [get]
 the total time to wait before waiting ends[s]
 
float WaitTime [get, set]
 the time already waited[s]
 
bool IsFinished [get]
 
float Progress [get]
 

Constructor & Destructor Documentation

◆ WaitingState()

CityBuilderCore.WaitingState.WaitingState ( float setTime)
inline
Parameters
setTimetotal waiting time in seconds