Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
20
Sprout/addons/beehave/nodes/beehave_tree.gd
Normal file
20
Sprout/addons/beehave/nodes/beehave_tree.gd
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
## Base class for all parts of the behaviour tree.
|
||||
@tool
|
||||
class_name BeehaveTree extends Node
|
||||
@icon("../icons/category_bt.svg")
|
||||
|
||||
|
||||
enum {
|
||||
SUCCESS,
|
||||
FAILURE,
|
||||
RUNNING
|
||||
}
|
||||
|
||||
|
||||
func _get_configuration_warnings() -> PackedStringArray:
|
||||
var warnings: PackedStringArray = []
|
||||
|
||||
if get_children().any(func(x): return not (x is BeehaveNode)):
|
||||
warnings.append("All children of this node should inherit from BeehaveNode class.")
|
||||
|
||||
return warnings
|
||||
Loading…
Add table
Add a link
Reference in a new issue