Class TimeData
A class for keeping time in Socially Distant.
Inherited Members
Namespace: SociallyDistant.Core
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class TimeData
Properties
FrameTime
Gets the amount of time passed while processing the previous frame.
Declaration
public TimeSpan FrameTime { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
TotalTime
Gets the amount of time Socially Distant has been running for.
Declaration
public TimeSpan TotalTime { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Methods
Update(GameTime)
Update the time-keeping information. Call this when starting a new frame.
Declaration
public void Update(GameTime gameTime)
Parameters
| Type | Name | Description |
|---|---|---|
| GameTime | gameTime | MonoGame's time-keeping information. |