Many fixes
This commit is contained in:
parent
f234ca974e
commit
e758c9f042
11 changed files with 8784 additions and 8739 deletions
|
|
@ -8,6 +8,7 @@ signal lobby_created
|
|||
signal lobby_joined
|
||||
signal lobby_closed
|
||||
signal update_teams_state
|
||||
signal client_data_updated(id)
|
||||
|
||||
var in_lobby: bool = false
|
||||
|
||||
|
|
@ -36,6 +37,7 @@ func player_left(id: int) -> void:
|
|||
client_nicknames.erase(id)
|
||||
|
||||
update_teams_state.emit()
|
||||
client_data_updated.emit(-id)
|
||||
|
||||
func server_disconnected() -> void:
|
||||
leave()
|
||||
|
|
@ -84,6 +86,7 @@ func recieve_client_data(data: Dictionary):
|
|||
client_nicknames[id] = nickname
|
||||
|
||||
sync_client_data.rpc(client_nicknames)
|
||||
client_data_updated.emit(id)
|
||||
|
||||
@rpc("authority","call_remote")
|
||||
func sync_client_data(new_client_nicknames: Dictionary[int,StringName]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue