Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
14
Sprout/addons/beehave/nodes/beehave_node.gd
Normal file
14
Sprout/addons/beehave/nodes/beehave_node.gd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
## A node in the behaviour tree. Every node must return `SUCCESS`, `FAILURE` or
|
||||
## `RUNNING` when ticked.
|
||||
@tool
|
||||
class_name BeehaveNode extends BeehaveTree
|
||||
|
||||
## Executes this node and returns a status code.
|
||||
## This method must be overwritten.
|
||||
func tick(actor: Node, blackboard: Blackboard) -> int:
|
||||
return SUCCESS
|
||||
|
||||
|
||||
## Called when this node needs to be interrupted before it can return FAILURE or SUCCESS.
|
||||
func interrupt(actor: Node, blackboard: Blackboard) -> void:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue