generated from krampus/template-godot4
12 lines
281 B
GDScript3
12 lines
281 B
GDScript3
|
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!")
|