|
Nebula
|
A time source.
The values are the mirror's copy of the native source, refreshed once per frame at the beginning of the frame, so reading them is a field read rather than a call through the api.
A source appears in the mirror after the first sync, and the engine has authority over the time.
Public Member Functions | |
| void | Pause () |
| void | Resume () |
Package Functions | |
| TimeSource (uint hash) | |
| void | Update (in TimeSourceSnapshot entry) |
Properties | |
| int | AvailableSteps [get, private set] |
| uint | Hash [get] |
| double | FrameTime [get, set] |
| double | Time [get, set] |
| long | Ticks [get, set] |
| double | FixedFrameTime [get, set] |
| double | Accumulator [get, set] |
| int | MaxStepsPerFrame [get, set] |
| float | TimeFactor [get, set] |
| How fast this source runs relative to the frame time. | |
| int | PauseCounter [get, set] |
| Increment to pause this source, decrement to let it run again. | |
| bool | IsPaused [get] |
Private Attributes | |
| readonly uint | hash |
| float | timeFactor |
| int | pauseCounter |
|
inlinepackage |
|
inline |
|
inline |
|
inlinepackage |
|
private |
|
private |
|
private |
|
getset |
|
getprivate setpackage |
|
getset |
|
getset |
|
get |
|
get |
|
getset |
|
getset |
Increment to pause this source, decrement to let it run again.
A paused source does not advance and has no steps available.
|
getset |
|
getset |
|
getset |
How fast this source runs relative to the frame time.
The write goes through the api and the mirror keeps the same value, so a read in the same frame agrees with what was just written.