port from perforce
This commit is contained in:
22
aiwaz/Aiwaz.Common/Timeline.cs
Normal file
22
aiwaz/Aiwaz.Common/Timeline.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Aiwaz.Common.Animations;
|
||||
|
||||
namespace Aiwaz.Common
|
||||
{
|
||||
public static class Timeline
|
||||
{
|
||||
private static double realTime;
|
||||
public static double RealTime { get { return realTime; } }
|
||||
private static double demoTime;
|
||||
public static double DemoTime { get { return demoTime; } }
|
||||
public static double SpeedAndDirection { get; set; }
|
||||
private static double lastRealDeltaTime;
|
||||
|
||||
public static void Advance(double argSeconds)
|
||||
{
|
||||
lastRealDeltaTime = argSeconds;
|
||||
realTime += argSeconds;
|
||||
demoTime += argSeconds * SpeedAndDirection;
|
||||
AnimationManager.Animate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user