Class BehaviorResult
Result of a behavior's input handling.
public record BehaviorResult : IEquatable<BehaviorResult>
- Inheritance
-
BehaviorResult
- Implements
- Inherited Members
Constructors
BehaviorResult(bool, bool)
Result of a behavior's input handling.
public BehaviorResult(bool Handled, bool SuppressDefault = false)
Parameters
HandledboolWhether the behavior handled this input.
SuppressDefaultboolIf true, skip default processing entirely.
Properties
Handled
Whether the behavior handled this input.
public bool Handled { get; init; }
Property Value
HandledContinue
The behavior handled this input, continue with default processing.
public static BehaviorResult HandledContinue { get; }
Property Value
HandledSuppress
The behavior handled this input, skip default processing.
public static BehaviorResult HandledSuppress { get; }
Property Value
NotHandled
The behavior did not handle this input.
public static BehaviorResult NotHandled { get; }
Property Value
SuppressDefault
If true, skip default processing entirely.
public bool SuppressDefault { get; init; }