Archiving the network manager in prep for a new design
This commit is contained in:
parent
768bd00bd2
commit
1457820fc0
@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=10 format=3 uid="uid://ewovs6ns5y3k"]
|
[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="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"]
|
[ext_resource type="PackedScene" uid="uid://c6w0ivy4hetrl" path="res://assets/core/player-controller/scenes/player.tscn" id="2_q510b"]
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ func _initialize() -> void:
|
|||||||
GameConsole.print_line("Steam ID: " + my_username)
|
GameConsole.print_line("Steam ID: " + my_username)
|
||||||
|
|
||||||
cache_avatar(my_steam_id)
|
cache_avatar(my_steam_id)
|
||||||
my_avatar_texture = lobby_members_avatar_cache[my_steam_id]
|
|
||||||
|
|
||||||
Steam.lobby_created.connect(_on_lobby_created)
|
Steam.lobby_created.connect(_on_lobby_created)
|
||||||
Steam.lobby_joined.connect(_on_lobby_joined)
|
Steam.lobby_joined.connect(_on_lobby_joined)
|
||||||
@ -61,6 +60,9 @@ func cache_avatar(user_id: int) -> bool:
|
|||||||
else:
|
else:
|
||||||
GameConsole.log_error("Failed to create avatar image for: " + Steam.getFriendPersonaName(user_id))
|
GameConsole.log_error("Failed to create avatar image for: " + Steam.getFriendPersonaName(user_id))
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
if user_id == my_steam_id:
|
||||||
|
my_avatar_texture = lobby_members_avatar_cache[user_id]
|
||||||
)
|
)
|
||||||
return false
|
return false
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://bpmn7t87tfk7f"]
|
[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"]
|
[node name="NetworkManager" type="Node"]
|
||||||
script = ExtResource("1_6essl")
|
script = ExtResource("1_6essl")
|
@ -1,8 +1,8 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://dfa8n5rw2qpfd"]
|
[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="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/network_test_ui.gd" id="2_rbs4r"]
|
[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/user_box_prefab.tscn" id="3_if51w"]
|
[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"]
|
[node name="Test-lobby" type="Node"]
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://huq7dxk5yvjk"]
|
[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"]
|
[node name="Main" type="Node"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user