heliostat/addons/beehave/nodes/leaves/action.gd

15 lines
451 B
GDScript3
Raw Normal View History

2024-07-29 05:10:46 +00:00
@tool
@icon("../../icons/action.svg")
class_name ActionLeaf extends Leaf
## Actions are leaf nodes that define a task to be performed by an actor.
## Their execution can be long running, potentially being called across multiple
## frame executions. In this case, the node should return `RUNNING` until the
## action is completed.
func get_class_name() -> Array[StringName]:
var classes := super()
classes.push_back(&"ActionLeaf")
return classes