godot-parkour/addons/godot_state_charts/guard.gd

8 lines
275 B
GDScript3
Raw Normal View History

2024-02-23 20:37:00 +00:00
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