Class MacroIfThenElseNode
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).
Inheritance
MacroIfThenElseNode
Implements
Inherited Members
Namespace: EyeAuras.BehaviorTree.Nodes.Macro
Assembly: EyeAuras.BehaviorTree.dll
Syntax
[AuraEntity(Name = "IfThenElse", Category = "Macro")]
public sealed class MacroIfThenElseNode : ActionNode<MacroIfThenElseNodeProperties>, INode<MacroIfThenElseNodeProperties>, IAuraObject<MacroIfThenElseNodeProperties>, IEntityContainer, IActionNode, IControlFlowNode, INode, IAuraObject, IBindableReactiveObject, ICanSetContext, IHasContext, IBTNode, IHasId, IHasTypedId<string>, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, IBehaviorTreeSerializable, ICanSetName, IHasName
Constructors
| Name | Description |
|---|---|
| MacroIfThenElseNode() |
Properties
| Name | Description |
|---|---|
| ConditionNode | |
| ElseNode | |
| MaxOutputs | |
| ThenNode |
Methods
| Name | Description |
|---|---|
| CanBecomeParent() | This operation analyzes whether any node can become a parent of a different node. Checks for circular references, states, etc. |
| TickAction(CancellationToken) | |
| VisitLoad(MacroIfThenElseNodeProperties) |