Exemplo n.º 1
0
 /// <summary>
 /// Converts real time span to game time span
 /// </summary>
 /// <param name="realTimeSpan"></param>
 /// <returns></returns>
 public UtopiaTimeSpan RealToGameSpan(TimeSpan realTimeSpan)
 {
     return(UtopiaTimeSpan.FromSeconds(realTimeSpan.TotalSeconds * _timeFactor));
 }
Exemplo n.º 2
0
 public static UtopiaTimeSpan operator -(UtopiaTime t1, UtopiaTime t2)
 {
     return UtopiaTimeSpan.FromSeconds(t1.TotalSeconds - t2.TotalSeconds);
 }