![]() |
Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
|
Public Member Functions | |
| Timer () | |
| Timer (int[] idArray) | |
| void | SetDefaultState () |
| string | GetFormattedValue () |
| void | Update () |
| void | Start () |
| void | Resume (bool resetTicker) |
| Resumes the Timer. | |
| void | Stop () |
| void | ShowGUI () |
Static Public Member Functions | |
| static string | CreateSaveData (List< Timer > timers) |
| Creates a save string containing the enabled state of a list of timers. | |
| static void | LoadSaveData (string dataString) |
| Restores the enabled states of the game's timers from a saved data string. | |
Properties | |
| int | ID [get] |
| bool | IsRunning [get] |
| float | MinValue [get, set] |
| float | MaxValue [get, set] |
| float | Progress [get] |
| float | Value [get, set] |
| GVar | Variable [get] |
| string | Label [get] |
A value that can be changed over time
| AC.Timer.Timer | ( | ) |
The default Constructor.
|
static |
Creates a save string containing the enabled state of a list of timers.
| timers | The timers to save |
| string AC.Timer.GetFormattedValue | ( | ) |
Returns the value, formatted into a readable format
|
static |
Restores the enabled states of the game's timers from a saved data string.
| dataString | The data string to load |
| void AC.Timer.Resume | ( | bool | resetTicker | ) |
Resumes the Timer.
| resetTicker | If True, the ticker in between value updates is reset |
| void AC.Timer.SetDefaultState | ( | ) |
Sets the enabled state to the default value.
| void AC.Timer.Start | ( | ) |
Starts the Timer
| void AC.Timer.Stop | ( | ) |
Stops the Timer
| void AC.Timer.Update | ( | ) |
Updates the Timer. This is called every frame by StateHandler.
|
get |
The Timer's unique ID
|
get |
If True, the Timer is running
|
get |
The Timer's Editor label
|
getset |
The Timer's maximum value
|
getset |
The Timer's minimum value
|
get |
The Timer's progress, as a decimal
|
getset |
The Timer's current value