refactor: delegate names updated to have no "On" prefix
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Syntriax.Engine.StateMachine;
|
||||
|
||||
public class StateMachine : Behaviour
|
||||
{
|
||||
public event OnStateChangedEventHandler? OnStateChanged = null;
|
||||
public event StateChangedEventHandler? OnStateChanged = null;
|
||||
|
||||
private IState _state = new State();
|
||||
public IState State
|
||||
@@ -45,5 +45,5 @@ public class StateMachine : Behaviour
|
||||
State.Update();
|
||||
}
|
||||
|
||||
public delegate void OnStateChangedEventHandler(StateMachine sender, IState previousState, IState newState);
|
||||
public delegate void StateChangedEventHandler(StateMachine sender, IState previousState, IState newState);
|
||||
}
|
||||
|
Reference in New Issue
Block a user