From 594605fe70f2c503cb1a80e7b7c3a34067714455 Mon Sep 17 00:00:00 2001 From: yuki Date: Fri, 14 Nov 2025 15:46:48 -0300 Subject: [PATCH] add default data to enter() --- scenes/classes/state.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenes/classes/state.gd b/scenes/classes/state.gd index f7d0de2..4b6ba30 100644 --- a/scenes/classes/state.gd +++ b/scenes/classes/state.gd @@ -17,7 +17,7 @@ signal finished(next_state_path: String, data: Dictionary) ## Called by the state machine upon changing the active state. The `data` parameter ## is a dictionary with arbitrary data the state can use to initialize itself. -@abstract func enter(previous_state_path: String, data: Dictionary) -> void +@abstract func enter(previous_state_path: String, data: Dictionary = {}) -> void ## Called by the state machine before changing the active state. Use this function ## to clean up the state.