add default data to enter()
This commit is contained in:
parent
fae50f0a56
commit
594605fe70
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
## 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.
|
## 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
|
## Called by the state machine before changing the active state. Use this function
|
||||||
## to clean up the state.
|
## to clean up the state.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue