feat: time systems added
This commit is contained in:
18
Engine.Systems/Time/IReadOnlyStopwatch.cs
Normal file
18
Engine.Systems/Time/IReadOnlyStopwatch.cs
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user