(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
// MonoGame - Copyright (C) The MonoGame Team
|
||||
// This file is subject to the terms and conditions defined in
|
||||
// file 'LICENSE.txt', which is part of this source code package.
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Xna.Framework
|
||||
{
|
||||
public class GameTime
|
||||
{
|
||||
public TimeSpan TotalGameTime { get; set; }
|
||||
|
||||
public TimeSpan ElapsedGameTime { get; set; }
|
||||
|
||||
public bool IsRunningSlowly { get; set; }
|
||||
|
||||
public GameTime()
|
||||
{
|
||||
TotalGameTime = TimeSpan.Zero;
|
||||
ElapsedGameTime = TimeSpan.Zero;
|
||||
IsRunningSlowly = false;
|
||||
}
|
||||
|
||||
public GameTime(TimeSpan totalGameTime, TimeSpan elapsedGameTime)
|
||||
{
|
||||
TotalGameTime = totalGameTime;
|
||||
ElapsedGameTime = elapsedGameTime;
|
||||
IsRunningSlowly = false;
|
||||
}
|
||||
|
||||
public GameTime (TimeSpan totalRealTime, TimeSpan elapsedRealTime, bool isRunningSlowly)
|
||||
{
|
||||
TotalGameTime = totalRealTime;
|
||||
ElapsedGameTime = elapsedRealTime;
|
||||
IsRunningSlowly = isRunningSlowly;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user