KS.Reactor.ksTime Class Reference

Holds time data that is common to the client and server. More...

Inheritance diagram for KS.Reactor.ksTime:
KS.Reactor.Client.ksClientTime KS.Reactor.Server.ksServerTime

Protected Attributes

float m_timeScale = 1f
 

Properties

static ksTime Zero [get]
 
float Delta [get]
 Local simulated game time in seconds since the last update. More...
 
float UnscaledDelta [get, set]
 Simulated game time in seconds unscaled by time scaling since the last update. More...
 
double Time [get, set]
 Total simluated game time in seconds. More...
 
double RealTime [get, set]
 Real time in seconds that the game has been running. More...
 
float TimeScale [get, set]
 Time scale applied to simulation steps. More...
 
ulong Frame [get, set]
 Server frame number. More...
 
int FramesPerSync [get, set]
 The number of server frames between each network update sent to clients. More...
 

Detailed Description

Holds time data that is common to the client and server.

Property Documentation

◆ Delta

float KS.Reactor.ksTime.Delta
get

Local simulated game time in seconds since the last update.

◆ Frame

ulong KS.Reactor.ksTime.Frame
getset

Server frame number.

◆ FramesPerSync

int KS.Reactor.ksTime.FramesPerSync
getset

The number of server frames between each network update sent to clients.

◆ RealTime

double KS.Reactor.ksTime.RealTime
getset

Real time in seconds that the game has been running.

◆ Time

double KS.Reactor.ksTime.Time
getset

Total simluated game time in seconds.

◆ TimeScale

float KS.Reactor.ksTime.TimeScale
getset

Time scale applied to simulation steps.

◆ UnscaledDelta

float KS.Reactor.ksTime.UnscaledDelta
getset

Simulated game time in seconds unscaled by time scaling since the last update.