Class CooldownNode
A Cooldown node is a type of DecoratorNode that tracks the last time its child node was ticked successfully. If the child node is requested to tick again before the cooldown period is over, the Cooldown node returns a failure status without ticking the child. Once the cooldown period is over, the Cooldown node will allow its child to tick again.
Inheritance
CooldownNode
Implements
Inherited Members
Namespace: EyeAuras.BehaviorTree.Nodes.Decorators
Assembly: EyeAuras.BehaviorTree.dll
Syntax
[AuraEntity(Name = "Cooldown")]
public sealed class CooldownNode : DecoratorNode<CooldownNodeProperties>, INode<CooldownNodeProperties>, IAuraObject<CooldownNodeProperties>, IEntityContainer, IDecoratorNode, INode, IAuraObject, IBindableReactiveObject, ICanSetContext, IHasContext, IBTNode, IHasId, IHasTypedId<string>, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, IBehaviorTreeSerializable, ICanSetName, IHasName
Constructors
Name | Description |
---|---|
CooldownNode() |
Properties
Name | Description |
---|---|
CooldownDuration | The duration in milliseconds that the node should wait after a successful tick before ticking the child again. |
CooldownTimeLeft | |
StartTimestamp |
Methods
Name | Description |
---|---|
TickInternal(CancellationToken) | This abstract method defines the main logic of the node and must be implemented in child classes. |
VisitLoad(CooldownNodeProperties) | |
VisitSave(CooldownNodeProperties) |