20 lines
480 B
GDScript
20 lines
480 B
GDScript
class_name ChessGameState extends Node
|
|
|
|
signal finished(nextStatePath: String, data: Dictionary)
|
|
const ChessGame = preload("res://Systems/Game/ChessGame.gd")
|
|
@export var game: ChessGame
|
|
|
|
func _ready() -> void:
|
|
assert(game != null, "ChessGameState must have a ChessGame reference")
|
|
|
|
func enter(_previous: String, _data := {}) -> void:
|
|
pass
|
|
|
|
func exit() -> void:
|
|
pass
|
|
|
|
func handleInput(_event: InputEvent) -> void:
|
|
pass
|
|
|
|
func update(_delta: float) -> void:
|
|
pass
|