generated from krampus/template-godot4
13 lines
349 B
GDScript3
13 lines
349 B
GDScript3
|
@tool
|
||
|
@icon("../../icons/condition.svg")
|
||
|
class_name ConditionLeaf extends Leaf
|
||
|
|
||
|
## Conditions are leaf nodes that either return SUCCESS or FAILURE depending on
|
||
|
## a single simple condition. They should never return `RUNNING`.
|
||
|
|
||
|
|
||
|
func get_class_name() -> Array[StringName]:
|
||
|
var classes := super()
|
||
|
classes.push_back(&"ConditionLeaf")
|
||
|
return classes
|