Class Time
A globally-accessible class for keeping time in Socially Distant.
Inherited Members
Namespace: SociallyDistant.Core
Assembly: SociallyDistant.Framework.dll
Syntax
public static class Time
Properties
DeltaTime
Gets the amount of time, in seconds, spent processing the previous game update.
Declaration
public static float DeltaTime { get; }
Property Value
Type | Description |
---|---|
float |
TotalTime
Gets the amount of time, in seconds, the game has been running for.
Declaration
public static float TotalTime { get; }
Property Value
Type | Description |
---|---|
float |
Methods
Initialize()
Initialize the time-keeping class. This is called by Socially Distant's internal codebase, and should never be called more than once.
Declaration
public static TimeData Initialize()
Returns
Type | Description |
---|---|
TimeData | A SociallyDistant.Core.Time.timeData instance that can be used to report time-keeping information. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Now you know why these comments exist. |