mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
24 lines
493 B
C#
24 lines
493 B
C#
using SS14.Client.Interfaces.GameTimer;
|
|
using SS14.Shared.IoC;
|
|
|
|
namespace SS14.Client.GameTimer
|
|
{
|
|
[IoCTarget]
|
|
public class GameTimer : IGameTimer
|
|
{
|
|
public GameTimer()
|
|
{
|
|
CurrentTime = 0f;
|
|
}
|
|
public float CurrentTime { get; private set; }
|
|
public void UpdateTime(float delta)
|
|
{
|
|
CurrentTime += delta;
|
|
}
|
|
public void SetTime(float time)
|
|
{
|
|
CurrentTime = time;
|
|
}
|
|
}
|
|
}
|