ChessBuilder/Systems/StateMachine/State.gd

16 lines
No EOL
290 B
GDScript

class_name State extends Node
signal finished(nextStatePath: String, data: Dictionary)
func handleInput(_event: InputEvent) -> void:
pass
func update(_delta: float) -> void:
pass
func enter(previousStatePath: String, data := {}) -> void:
pass
func exit() -> void:
pass