refactor: reorganize networking and data bridge scenes
* Move networking scenes under `controllers/networking` * Move data bridge scene under `scenes/data` * Rename the bridge node to `data_bridge` * Update lobby UI scene path * Remove unused lobby RPC node/script
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://04nv87epssf4"]
|
[gd_scene load_steps=5 format=3 uid="uid://04nv87epssf4"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dbca7qndk7coq" path="res://billiards.gd" id="1_bhs8v"]
|
[ext_resource type="Script" uid="uid://dbca7qndk7coq" path="res://billiards.gd" id="1_bhs8v"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dy51wny4x53f4" path="res://scenes/data_bridge/bridge.tscn" id="1_xa5nf"]
|
[ext_resource type="PackedScene" uid="uid://dy51wny4x53f4" path="res://scenes/data/data_bridge.tscn" id="1_xa5nf"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cbvv2msu13vr2" path="res://game_client.tscn" id="3_hkpkv"]
|
[ext_resource type="PackedScene" uid="uid://cbvv2msu13vr2" path="res://controllers/networking/game_client.tscn" id="3_hkpkv"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bss61m8hfvab3" path="res://game_server.tscn" id="4_cni66"]
|
[ext_resource type="PackedScene" uid="uid://bss61m8hfvab3" path="res://controllers/networking/game_server.tscn" id="4_cni66"]
|
||||||
|
|
||||||
[node name="billiards" type="Node"]
|
[node name="billiards" type="Node"]
|
||||||
script = ExtResource("1_bhs8v")
|
script = ExtResource("1_bhs8v")
|
||||||
|
|
||||||
[node name="bridge" parent="." instance=ExtResource("1_xa5nf")]
|
[node name="data_bridge" parent="." instance=ExtResource("1_xa5nf")]
|
||||||
|
|
||||||
[node name="game_client" parent="." instance=ExtResource("3_hkpkv")]
|
[node name="game_client" parent="." instance=ExtResource("3_hkpkv")]
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://cbvv2msu13vr2"]
|
[gd_scene load_steps=2 format=3 uid="uid://cbvv2msu13vr2"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cjtu1d1j35r32" path="res://game_client.gd" id="1_tea1p"]
|
[ext_resource type="Script" uid="uid://cjtu1d1j35r32" path="res://controllers/networking/game_client.gd" id="1_tea1p"]
|
||||||
|
|
||||||
[node name="client_net" type="Node"]
|
[node name="client_net" type="Node"]
|
||||||
script = ExtResource("1_tea1p")
|
script = ExtResource("1_tea1p")
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://bss61m8hfvab3"]
|
[gd_scene load_steps=2 format=3 uid="uid://bss61m8hfvab3"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bndylf4rwtlkn" path="res://game_server.gd" id="1_3xapr"]
|
[ext_resource type="Script" uid="uid://bndylf4rwtlkn" path="res://controllers/networking/game_server.gd" id="1_3xapr"]
|
||||||
|
|
||||||
[node name="server_net" type="Node"]
|
[node name="server_net" type="Node"]
|
||||||
script = ExtResource("1_3xapr")
|
script = ExtResource("1_3xapr")
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://dy51wny4x53f4"]
|
[gd_scene load_steps=5 format=3 uid="uid://dy51wny4x53f4"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://52eithlmedm3" path="res://scenes/data_bridge/game_data.gd" id="1_hulqm"]
|
[ext_resource type="Script" uid="uid://52eithlmedm3" path="res://scenes/data/game_data.gd" id="1_hulqm"]
|
||||||
[ext_resource type="Script" uid="uid://dvw46rvml3ec" path="res://scenes/data_bridge/game_state.gd" id="2_6ash1"]
|
[ext_resource type="Script" uid="uid://dvw46rvml3ec" path="res://scenes/data/game_state.gd" id="2_6ash1"]
|
||||||
[ext_resource type="Script" uid="uid://6sfwe1hwgf0g" path="res://scenes/data_bridge/lobby_data.gd" id="3_80q4n"]
|
[ext_resource type="Script" uid="uid://6sfwe1hwgf0g" path="res://scenes/data/lobby_data.gd" id="3_80q4n"]
|
||||||
[ext_resource type="Script" uid="uid://bs4vblwa3u5jq" path="res://scenes/data_bridge/multiplayer_data.gd" id="4_setx2"]
|
[ext_resource type="Script" uid="uid://bs4vblwa3u5jq" path="res://scenes/data/multiplayer_data.gd" id="4_setx2"]
|
||||||
|
|
||||||
[node name="bridge" type="Node"]
|
[node name="data_bridge" type="Node"]
|
||||||
|
|
||||||
[node name="game_data" type="Node" parent="."]
|
[node name="game_data" type="Node" parent="."]
|
||||||
script = ExtResource("1_hulqm")
|
script = ExtResource("1_hulqm")
|
||||||
@@ -16,5 +16,5 @@ script = ExtResource("2_6ash1")
|
|||||||
[node name="lobby_data" type="Node" parent="."]
|
[node name="lobby_data" type="Node" parent="."]
|
||||||
script = ExtResource("3_80q4n")
|
script = ExtResource("3_80q4n")
|
||||||
|
|
||||||
[node name="multiplayer" type="Node" parent="."]
|
[node name="multiplayer_data" type="Node" parent="."]
|
||||||
script = ExtResource("4_setx2")
|
script = ExtResource("4_setx2")
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://dkes5cdu45q6e"]
|
[gd_scene load_steps=4 format=3 uid="uid://dkes5cdu45q6e"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dk7afnf7ol7dy" path="res://scenes/screens/lobby_screen/lobby.gd" id="1_hhiik"]
|
[ext_resource type="Script" uid="uid://dk7afnf7ol7dy" path="res://scenes/screens/lobby_screen/lobby.gd" id="1_hhiik"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dg7pgj6i5pk8p" path="res://scenes/ui_controls/lobby_screen/lobby_ui.tscn" id="2_lqt48"]
|
[ext_resource type="PackedScene" uid="uid://dg7pgj6i5pk8p" path="res://scenes/ui_controls/lobby/ui.tscn" id="2_lqt48"]
|
||||||
[ext_resource type="Script" uid="uid://sihv0kwbcr33" path="res://scenes/screens/lobby_screen/lobby_rpc.gd" id="3_rurl6"]
|
|
||||||
[ext_resource type="Script" uid="uid://dv7j35h2ngiq7" path="res://scenes/screens/lobby_screen/lobby_client.gd" id="4_glu7g"]
|
[ext_resource type="Script" uid="uid://dv7j35h2ngiq7" path="res://scenes/screens/lobby_screen/lobby_client.gd" id="4_glu7g"]
|
||||||
|
|
||||||
[node name="lobby" type="Node"]
|
[node name="lobby" type="Node"]
|
||||||
@@ -27,9 +26,6 @@ visible = false
|
|||||||
context_menu_enabled = false
|
context_menu_enabled = false
|
||||||
select_all_on_focus = true
|
select_all_on_focus = true
|
||||||
|
|
||||||
[node name="rpc_signals" type="Node" parent="."]
|
|
||||||
script = ExtResource("3_rurl6")
|
|
||||||
|
|
||||||
[node name="client" type="Node" parent="."]
|
[node name="client" type="Node" parent="."]
|
||||||
script = ExtResource("4_glu7g")
|
script = ExtResource("4_glu7g")
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ const MATCH_ENTRY = preload("res://scenes/screens/lobb
|
|||||||
@onready var match_create_vbox: VBoxContainer = $ui/body/right_body
|
@onready var match_create_vbox: VBoxContainer = $ui/body/right_body
|
||||||
@onready var new_match_name_input: LineEdit = $ui/body/right_body/create_match_hbox/new_match_name_input
|
@onready var new_match_name_input: LineEdit = $ui/body/right_body/create_match_hbox/new_match_name_input
|
||||||
|
|
||||||
@onready var rpc_signals: Node = $rpc_signals
|
|
||||||
@onready var client: LobbyClient = $client
|
@onready var client: LobbyClient = $client
|
||||||
|
|
||||||
var active_mode: String = "freeball"
|
var active_mode: String = "freeball"
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
extends Node
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://sihv0kwbcr33
|
|
||||||
Reference in New Issue
Block a user