Class IfThenElseNode
The IfThenElse
node is a type of Control Flow node in the behavior tree with exactly three children nodes.
If the condition node returns Success
, then it ticks the Then
node (the second child).
If the condition node returns Failure
, then it ticks the Else
node (the third child).
If the condition node returns Running
, then it also returns Running
.
Inheritance
IfThenElseNode
Implements
Inherited Members
Namespace: EyeAuras.BehaviorTree.Nodes.ControlFlow
Assembly: EyeAuras.BehaviorTree.dll
Syntax
[AuraEntity(Name = "IfThenElse")]
public sealed class IfThenElseNode : NodeBase<IfThenElseNodeProperties>, INode<IfThenElseNodeProperties>, IAuraObject<IfThenElseNodeProperties>, IEntityContainer, IControlFlowNode, INode, IAuraObject, IBindableReactiveObject, ICanSetContext, IHasContext, IBTNode, IHasId, IHasTypedId<string>, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, IBehaviorTreeSerializable, ICanSetName, IHasName
Constructors
Name | Description |
---|---|
IfThenElseNode() |
Properties
Name | Description |
---|---|
MaxOutputs |
Methods
Name | Description |
---|---|
Reset() | This abstract method allows nodes to reset their state to default (stop timers, clear counters, etc) |
TickInternal(CancellationToken) | This abstract method defines the main logic of the node and must be implemented in child classes. |