Class StateTransitionResult
Represents the result of a state transition.
public record StateTransitionResult : IEquatable<StateTransitionResult>
- Inheritance
-
StateTransitionResult
- Implements
- Inherited Members
Constructors
StateTransitionResult(IInputState?, bool)
Represents the result of a state transition.
public StateTransitionResult(IInputState? NewState, bool Handled)
Parameters
NewStateIInputStateHandledbool
Properties
Handled
public bool Handled { get; init; }
Property Value
NewState
public IInputState? NewState { get; init; }
Property Value
Methods
Stay(bool)
public static StateTransitionResult Stay(bool handled = true)
Parameters
handledbool
Returns
TransitionTo(IInputState)
public static StateTransitionResult TransitionTo(IInputState newState)
Parameters
newStateIInputState
Returns
Unhandled()
public static StateTransitionResult Unhandled()