Table of Contents

Class BehaviorResult

Namespace
FlowGraph.Core.Input
Assembly
FlowGraph.Core.dll

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

Handled bool

Whether the behavior handled this input.

SuppressDefault bool

If true, skip default processing entirely.

Properties

Handled

Whether the behavior handled this input.

public bool Handled { get; init; }

Property Value

bool

HandledContinue

The behavior handled this input, continue with default processing.

public static BehaviorResult HandledContinue { get; }

Property Value

BehaviorResult

HandledSuppress

The behavior handled this input, skip default processing.

public static BehaviorResult HandledSuppress { get; }

Property Value

BehaviorResult

NotHandled

The behavior did not handle this input.

public static BehaviorResult NotHandled { get; }

Property Value

BehaviorResult

SuppressDefault

If true, skip default processing entirely.

public bool SuppressDefault { get; init; }

Property Value

bool