Moving some of lobby to use MessageBus

This commit is contained in:
2026-08-08 01:20:58 -05:00
parent de0da3de6e
commit 5ab970aec5
6 changed files with 109 additions and 66 deletions

View File

@@ -1,29 +1 @@
extends Node
@warning_ignore_start("unused_signal")
signal server_host_started()
signal match_list_entry_added(match_entry: Dictionary)
signal match_list_entry_removed(match_id: String)
@warning_ignore_restore("unused_signal")
@rpc("authority", "call_local", "reliable")
func match_list_add_entry(match_entry: Dictionary) -> void:
push_warning("Received new match entry...")
emit_signal("match_list_entry_added", match_entry)
@rpc("authority", "call_local", "reliable")
func match_list_remove_entry(match_id: String) -> void:
push_warning("Received delete match entry...")
emit_signal("match_list_entry_removed", match_id)
@rpc("authority", "reliable")
func receive_match_list(_match_list: Array) -> void:
pass
@rpc("authority", "reliable")
func match_list_activate_entry(_match_id: String) -> void:
pass