This repository has been archived on 2025-01-17. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
blood-and-mortar/addons/godot_state_charts/guard.gd

7 lines
285 B
GDScript

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