Files
EGJ25/addons/godot_state_charts/guard.gd
minimata 9a79715e47
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s
feat: made sure the aspect ration fit a pixel art game and added useful addons
2025-06-27 15:19:12 +02:00

14 lines
604 B
GDScript

@icon("guard.svg")
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
## Returns the triggers which should trigger the guard's evaluation. This is a bit mask of [StateChart.TriggerType].
func get_supported_trigger_types() -> int:
push_error("Guard._get_supported_trigger_types() is not implemented. Did you forget to override it?")
return StateChart.TriggerType.NONE