Change log levels and add more logging

This commit is contained in:
JonShard
2026-08-20 09:53:09 +02:00
parent 06dde91468
commit 655751e5bd
7 changed files with 34 additions and 25 deletions
+3 -1
View File
@@ -15,13 +15,15 @@ func _unhandled_input(event: InputEvent) -> void:
# Kill all clients
@rpc("any_peer", "call_local", "reliable")
func all_quit_game():
SweetLogger.info("Quit game requested, killing all clients")
get_tree().quit()
# Finds any node of class/type Table and calls satisfyAllOrders()
func satisfy_table_orders() -> void:
SweetLogger.info("Debug: satisfying all table orders")
# Searches all nodes in the current running scene matching the class "Table"
var table_nodes = get_tree().root.find_children("*", "Table", true, false)
for node in table_nodes:
if node.has_method("satisfyAllOrders"):
node.satisfyAllOrders()