Change log levels and add more logging
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user