legacy-of-the-ancient-questor/scripts/game/game_screen.gd

14 lines
273 B
GDScript

extends Node
class_name GameScreen
@export var map:Node
func _ready():
map.add_child(load(GameManager.currentMapPath).instantiate())
CommandDispatcher.WAIT_FOR_COMMAND.emit()
func _on_pass_button_pressed():
CommandDispatcher.PROCESS_COMMAND.emit(PassCommand.new())