Class InputProcessorResult
Result of an input processor's handling.
public record InputProcessorResult : IEquatable<InputProcessorResult>
- Inheritance
-
InputProcessorResult
- Implements
- Inherited Members
Constructors
InputProcessorResult(IInputState?, bool)
Result of an input processor's handling.
public InputProcessorResult(IInputState? NewState, bool Handled)
Parameters
NewStateIInputStateOptional new state to transition to.
HandledboolWhether this input was handled (stops propagation to lower-priority processors).
Properties
Handled
Whether this input was handled (stops propagation to lower-priority processors).
public bool Handled { get; init; }
Property Value
HandledStay
The processor handled this input but state remains unchanged.
public static InputProcessorResult HandledStay { get; }
Property Value
NewState
Optional new state to transition to.
public IInputState? NewState { get; init; }
Property Value
NotHandled
The processor did not handle this input. Continue to next processor.
public static InputProcessorResult NotHandled { get; }
Property Value
Methods
TransitionTo(IInputState)
The processor handled this input and wants to transition to a new state.
public static InputProcessorResult TransitionTo(IInputState newState)
Parameters
newStateIInputState