feat: time systems added

This commit is contained in:
2025-03-30 20:29:26 +03:00
parent b73c9ed0ae
commit 7a1dd7eb1a
10 changed files with 346 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
namespace Syntriax.Engine.Systems.Time;
public interface IReadOnlyStopwatch
{
event StopwatchEventHandler? OnStarted;
event StopwatchDeltaEventHandler? OnDelta;
event StopwatchEventHandler? OnStopped;
double Time { get; }
TimerState State { get; }
event StopwatchEventHandler? OnPaused;
event StopwatchEventHandler? OnResumed;
delegate void StopwatchEventHandler(IReadOnlyStopwatch sender);
delegate void StopwatchDeltaEventHandler(IReadOnlyStopwatch sender, double delta);
}