style: Renamed GameTime to EngineTime

This commit is contained in:
Syntriax 2024-01-23 12:04:32 +03:00
parent 485dfcc51e
commit 0ce6f8ab23
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ using System;
namespace Syntriax.Engine.Core;
public record GameTime
public record EngineTime
(
TimeSpan Total,
TimeSpan Elapsed

View File

@ -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;
}