Method Tick
Tick(CancellationToken)
Executes one tick of the behavior tree, updating the state of all relevant nodes.
Declaration
Task<NodeStatus> Tick(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | Token to cancel the execution if needed. |
Returns
| Type | Description |
|---|---|
| Task<NodeStatus> | The status of the root node after execution:
|
Remarks
This method is designed to be fault-tolerant and will never throw exceptions. Instead, failures are communicated through the returned NodeStatus.