rename methods
This commit is contained in:
parent
c1aaa9492f
commit
fae50f0a56
1 changed files with 5 additions and 5 deletions
|
|
@ -7,18 +7,18 @@
|
||||||
signal finished(next_state_path: String, data: Dictionary)
|
signal finished(next_state_path: String, data: Dictionary)
|
||||||
|
|
||||||
## Called by the state machine when receiving unhandled input events.
|
## Called by the state machine when receiving unhandled input events.
|
||||||
@abstract func _handle_input(_event: InputEvent) -> void
|
@abstract func handle_input(_event: InputEvent) -> void
|
||||||
|
|
||||||
## Called by the state machine on the engine's main loop tick.
|
## Called by the state machine on the engine's main loop tick.
|
||||||
@abstract func _state_update(_delta: float) -> void
|
@abstract func state_update(_delta: float) -> void
|
||||||
|
|
||||||
## Called by the state machine on the engine's physics update tick.
|
## Called by the state machine on the engine's physics update tick.
|
||||||
@abstract func _state_physics_update(_delta: float) -> void
|
@abstract func state_physics_update(_delta: float) -> void
|
||||||
|
|
||||||
## 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.
|
||||||
@abstract func _exit() -> void
|
@abstract func exit() -> void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue