Moving some of game to use MessageBus

This commit is contained in:
2026-08-08 01:22:54 -05:00
parent 6ebee75920
commit 50439bc8e0
7 changed files with 54 additions and 83 deletions

View File

@@ -30,13 +30,18 @@ func init_match():
rpc("set_active_player_id", Globals.game_data.client1)
Globals.lobby_data.rpc_id(
MessageBus.emit_propagation_clients_only.rpc_id(
Globals.game_data.client1,
"load_game_scene", match_entry, true
"match_list_entry_load_match",
[match_entry, true],
true
)
Globals.lobby_data.rpc_id(
MessageBus.emit_propagation_clients_only.rpc_id(
Globals.game_data.client2,
"load_game_scene", match_entry, false
"match_list_entry_load_match",
[match_entry, false],
true
)
func wait_for_connection() -> void: