godot-parkour/addons/godot_state_charts/guard.gd

8 lines
275 B
GDScript

class_name Guard
extends Resource
## Returns true if the guard is satisfied, false otherwise.
func is_satisfied(context_transition:Transition, context_state:State) -> bool:
push_error("Guard.is_satisfied() is not implemented. Did you forget to override it?")
return false