Moving some of game to use MessageBus
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user