23 lines
682 B
C#
23 lines
682 B
C#
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();
|
|
}
|
|
}
|
|
}
|