gfolf2/src/game/game_runtime.gd

12 lines
281 B
GDScript

class_name GameRuntimeType extends Node
## Autoloaded runtime manager
func _notification(what: int) -> void:
if what == NOTIFICATION_WM_CLOSE_REQUEST:
# Handle close request here
# TODO: save?
get_tree().quit()
elif what == NOTIFICATION_CRASH:
print_debug("CRASHING!")