chore: get init to only get for events
This commit is contained in:
@@ -4,11 +4,11 @@ namespace Syntriax.Engine.Systems.Time;
|
||||
|
||||
public class StopwatchBehaviour : Behaviour, IStopwatch
|
||||
{
|
||||
public Event<IReadOnlyStopwatch> OnStarted { get; init; } = new();
|
||||
public Event<IReadOnlyStopwatch, IReadOnlyStopwatch.StopwatchDeltaArguments> OnDelta { get; init; } = new();
|
||||
public Event<IReadOnlyStopwatch> OnStopped { get; init; } = new();
|
||||
public Event<IReadOnlyStopwatch> OnPaused { get; init; } = new();
|
||||
public Event<IReadOnlyStopwatch> OnResumed { get; init; } = new();
|
||||
public Event<IReadOnlyStopwatch> OnStarted { get; } = new();
|
||||
public Event<IReadOnlyStopwatch, IReadOnlyStopwatch.StopwatchDeltaArguments> OnDelta { get; } = new();
|
||||
public Event<IReadOnlyStopwatch> OnStopped { get; } = new();
|
||||
public Event<IReadOnlyStopwatch> OnPaused { get; } = new();
|
||||
public Event<IReadOnlyStopwatch> OnResumed { get; } = new();
|
||||
|
||||
public double Time { get; protected set; } = 0f;
|
||||
public TimerState State { get; protected set; } = TimerState.Idle;
|
||||
|
||||
Reference in New Issue
Block a user