Constants
The value of a constant cannot be changed
Type |
Name |
Value |
Description |
number |
TickFrequency |
0.1 |
Determines how often a time Tick occurs. |
Fields
Type |
Name |
Static |
Default |
Description |
number |
TicksPerSecond |
|
|
Determines how many ticks a second requires. Increasing or decreasing this value will speed-up/slow-down time |
Event__boolean__instance |
OnPause |
|
|
Invoked whenever the game is paused/unpaused |
Event__number__instance |
OnSecondPassed |
|
|
OnSecondPassed is called whenever a second has passed |
Event__number__instance |
OnTenthOfSecond |
|
|
Invoked every 0.1s |
Event__number__instance |
OnHourPassed |
|
|
OnHourPassed is called whenever an hour has passed |
string |
Debug |
|
|
|
ReadOnly
Type |
Name |
Static |
Default |
Description |
number |
TotalTicks |
|
|
|
Properties
Type |
Getter |
Setter |
Static |
Default |
Description |
number |
get_Ticks() |
set_Ticks(val) |
|
|
0.1s is the equivalent to a single tick |
Functions
Requires an instance!
Pause
UnPause
Now
Gets the current time