Upadte Table Sync

This commit is contained in:
JonShard
2026-08-11 16:30:24 +02:00
parent 2efeb2dd24
commit 28e4ac6016
2 changed files with 19 additions and 10 deletions
+4 -4
View File
@@ -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
+15 -6
View File
@@ -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)