style: Renamed GameTime to EngineTime
This commit is contained in:
parent
485dfcc51e
commit
0ce6f8ab23
|
@ -2,7 +2,7 @@ using System;
|
|||
|
||||
namespace Syntriax.Engine.Core;
|
||||
|
||||
public record GameTime
|
||||
public record EngineTime
|
||||
(
|
||||
TimeSpan Total,
|
||||
TimeSpan Elapsed
|
|
@ -4,10 +4,10 @@ namespace Syntriax.Engine.Core;
|
|||
|
||||
public static class Time
|
||||
{
|
||||
private static GameTime _gameTime = new(TimeSpan.Zero, TimeSpan.Zero);
|
||||
private static EngineTime _engineTime = new(TimeSpan.Zero, TimeSpan.Zero);
|
||||
|
||||
public static TimeSpan Total => _gameTime.Total;
|
||||
public static TimeSpan Elapsed => _gameTime.Elapsed;
|
||||
public static TimeSpan Total => _engineTime.Total;
|
||||
public static TimeSpan Elapsed => _engineTime.Elapsed;
|
||||
|
||||
public static void SetTime(GameTime gameTime) => _gameTime = gameTime;
|
||||
public static void SetTime(EngineTime engineTime) => _engineTime = engineTime;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue