Merging networking features #5

Merged
gskeough merged 27 commits from feature/godot-steam-integration into develop 2024-12-14 03:37:16 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit b576e32718 - Show all commits

View File

@ -144,7 +144,6 @@ func read_p2p_packet() -> void:
"handshake":
GameConsole.print_line("Handshake from: " + read_data["username"])
get_lobby_members()
user_joined_lobby.emit(packet_sender, read_data["username"])
"chat":
GameConsole.print_line(read_data["username"] + ": " + read_data["message"])
_:

View File

@ -52,6 +52,8 @@ func _on_join_button_pressed() -> void:
func _on_user_joined_lobby(user_id: int, username: String) -> void:
if user_id == network_manager.steam_id:
return
print(user_id, Steam.getFriendPersonaName(user_id))
var user_box: Node = user_box_prefab.instantiate()
user_box.name = "UserBox_" + str(user_id)