Class RepeatNode
This class represents a Repeat node in a behavior tree. A Repeat node is a type of DecoratorNode which runs its child node a certain number of times. It fails if its child node fails, but succeeds if it finishes all repetitions successfully.
Inheritance
RepeatNode
Implements
Inherited Members
Namespace: EyeAuras.BehaviorTree.Nodes.Decorators
Assembly: EyeAuras.BehaviorTree.dll
Syntax
[AuraEntity(Name = "Repeat")]
public class RepeatNode : DecoratorNode<RepeatNodeProperties>, INode<RepeatNodeProperties>, IAuraObject<RepeatNodeProperties>, IEntityContainer, IDecoratorNode, INode, IAuraObject, IBindableReactiveObject, ICanSetContext, IHasContext, IBTNode, IHasId, IHasTypedId<string>, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, IBehaviorTreeSerializable, ICanSetName, IHasName
Constructors
Name | Description |
---|---|
RepeatNode() |
Properties
Name | Description |
---|---|
Count | The number of times the child node should be run. |
Methods
Name | Description |
---|---|
TickInternal(CancellationToken) | This abstract method defines the main logic of the node and must be implemented in child classes. |
VisitLoad(RepeatNodeProperties) | |
VisitSave(RepeatNodeProperties) |