From 28e4ac60168631064b2ea55a1597ff14ddc0fa6d Mon Sep 17 00:00:00 2001 From: JonShard Date: Tue, 11 Aug 2026 16:30:24 +0200 Subject: [PATCH] Upadte Table Sync --- Stations/table.gd | 8 ++++---- Stations/table.tscn | 21 +++++++++++++++------ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/Stations/table.gd b/Stations/table.gd index a281805..c0f5110 100644 --- a/Stations/table.gd +++ b/Stations/table.gd @@ -38,11 +38,11 @@ enum TableState { ## NetworkManager._gate_station). The setters below just refresh the display, ## so both the server (via _set_state) and clients (via incoming sync) show ## the same text. Use _set_state(), never assign _state directly. -var _state: TableState = TableState.EMPTY -var _state_time: float = 0.0 -var _state_duration: float = 0.0 # set in _set_state_time +@export var _state: TableState = TableState.EMPTY +@export var _state_time: float = 0.0 +@export var _state_duration: float = 0.0 # set in _set_state_time var _original_orders: Array[String] = [] -var _unsatisfied_orders: Array[String] = [] +@export var _unsatisfied_orders: Array[String] = [] var _players_count: int = 0 diff --git a/Stations/table.tscn b/Stations/table.tscn index 6fc2f9d..1db26c6 100644 --- a/Stations/table.tscn +++ b/Stations/table.tscn @@ -8,24 +8,33 @@ [ext_resource type="PackedScene" uid="uid://bxbocxdaayvwx" path="res://UI/progress_bar.tscn" id="3_kjf1i"] [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_np_table"] -properties/0/path = NodePath(".:_state") +properties/0/path = NodePath(".:position") properties/0/spawn = false properties/0/replication_mode = 1 -properties/1/path = NodePath(".:_state_time") +properties/1/path = NodePath(".:rotation") properties/1/spawn = false properties/1/replication_mode = 1 -properties/2/path = NodePath(".:_unsatisfied_orders") +properties/2/path = NodePath(".:visible") properties/2/spawn = false properties/2/replication_mode = 1 -properties/3/path = NodePath(".:position") +properties/3/path = NodePath(".:_state_duration") properties/3/spawn = false properties/3/replication_mode = 1 -properties/4/path = NodePath(".:rotation") +properties/4/path = NodePath(".:_state") properties/4/spawn = false properties/4/replication_mode = 1 -properties/5/path = NodePath(".:visible") +properties/5/path = NodePath(".:_state_time") properties/5/spawn = false properties/5/replication_mode = 1 +properties/6/path = NodePath(".:_unsatisfied_orders") +properties/6/spawn = false +properties/6/replication_mode = 1 +properties/7/path = NodePath("Seats/Seat:visible") +properties/7/spawn = false +properties/7/replication_mode = 1 +properties/8/path = NodePath("Customers/Customer:visible") +properties/8/spawn = false +properties/8/replication_mode = 1 [sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"] size = Vector3(0.7983472, 0.060000002, 0.59873295)