Class InterrupterNode
The Interruptor node is assigned a Condition Task. If the condition is or becomes true, the child node is interrupted if it is running, and the Interruptor returns Failure. Otherwise, the Interruptor returns the same status as the child node.
Inheritance
InterrupterNode
Implements
Inherited Members
Namespace: EyeAuras.BehaviorTree.Nodes.Decorators
Assembly: EyeAuras.BehaviorTree.dll
Syntax
[AuraEntity(Name = "Interrupter", Category = "Behavior Tree")]
public sealed class InterrupterNode : DecoratorNode<InterrupterNodeProperties>, INode<InterrupterNodeProperties>, IAuraObject<InterrupterNodeProperties>, IEntityContainer, IDecoratorNode, INode, IAuraObject, IBindableReactiveObject, ICanSetContext, IHasContext, IBTNode, IHasId, IHasTypedId<string>, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, IBehaviorTreeSerializable, ICanSetName, IHasName
Remarks
Success: The child node returns Success.
Failure: The child node returns Failure, or the condition is or becomes true while the child node is running, causing an interruption.
Running: The child node is still running.
Constructors
Name | Description |
---|---|
InterrupterNode() |
Properties
Name | Description |
---|---|
ConditionNode | |
MaxOutputs | |
ThenNode |
Methods
Name | Description |
---|---|
TickInternal(CancellationToken) | This abstract method defines the main logic of the node and must be implemented in child classes. |