Archiving the network manager in prep for a new design

This commit is contained in:
Chris Bell 2024-12-12 22:40:38 -06:00
parent 768bd00bd2
commit 1457820fc0
7 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=10 format=3 uid="uid://ewovs6ns5y3k"]
[ext_resource type="Script" path="res://assets/core/networking/NetworkManager.gd" id="1_kki4t"]
[ext_resource type="Script" path="res://assets/core/networking/old/NetworkManager.gd" id="1_kki4t"]
[ext_resource type="Texture2D" uid="uid://gymb0tju4y67" path="res://addons/kennysprototypetextures/Dark/texture_black (1).png" id="1_l0osb"]
[ext_resource type="PackedScene" uid="uid://c6w0ivy4hetrl" path="res://assets/core/player-controller/scenes/player.tscn" id="2_q510b"]

View File

@ -29,7 +29,6 @@ func _initialize() -> void:
GameConsole.print_line("Steam ID: " + my_username)
cache_avatar(my_steam_id)
my_avatar_texture = lobby_members_avatar_cache[my_steam_id]
Steam.lobby_created.connect(_on_lobby_created)
Steam.lobby_joined.connect(_on_lobby_joined)
@ -61,6 +60,9 @@ func cache_avatar(user_id: int) -> bool:
else:
GameConsole.log_error("Failed to create avatar image for: " + Steam.getFriendPersonaName(user_id))
return false
if user_id == my_steam_id:
my_avatar_texture = lobby_members_avatar_cache[user_id]
)
return false

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://bpmn7t87tfk7f"]
[ext_resource type="Script" path="res://assets/core/networking/NetworkManager.gd" id="1_6essl"]
[ext_resource type="Script" path="res://assets/core/networking/old/NetworkManager.gd" id="1_6essl"]
[node name="NetworkManager" type="Node"]
script = ExtResource("1_6essl")

View File

@ -1,8 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://dfa8n5rw2qpfd"]
[ext_resource type="PackedScene" uid="uid://bpmn7t87tfk7f" path="res://assets/core/networking/network_manager.tscn" id="1_i1w5w"]
[ext_resource type="Script" path="res://assets/core/networking/network_test_ui.gd" id="2_rbs4r"]
[ext_resource type="PackedScene" uid="uid://biryul3n6thlw" path="res://assets/core/networking/user_box_prefab.tscn" id="3_if51w"]
[ext_resource type="PackedScene" uid="uid://bpmn7t87tfk7f" path="res://assets/core/networking/old/network_manager.tscn" id="1_i1w5w"]
[ext_resource type="Script" path="res://assets/core/networking/old/network_test_ui.gd" id="2_rbs4r"]
[ext_resource type="PackedScene" uid="uid://biryul3n6thlw" path="res://assets/core/networking/old/user_box_prefab.tscn" id="3_if51w"]
[node name="Test-lobby" type="Node"]

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://huq7dxk5yvjk"]
[ext_resource type="Script" path="res://assets/core/networking/NetworkManager.gd" id="1_dcack"]
[ext_resource type="Script" path="res://assets/core/networking/old/NetworkManager.gd" id="1_dcack"]
[node name="Main" type="Node"]