From c8f674ac6fa0914d9e448d2929f2385cdad80d60 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 5 Nov 2024 11:34:49 +0100 Subject: next commit --- Game/Client.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Game/Client.gd') diff --git a/Game/Client.gd b/Game/Client.gd index 88c59c2..2c3bb69 100644 --- a/Game/Client.gd +++ b/Game/Client.gd @@ -100,6 +100,10 @@ func spawn_unit(unit: Unit, spawn: Spawn, overwrite_target: PathNode = null): current_stage.spawn_unit.rpc(inst_to_dict(unit.to_network_data())) +func update_unit(path: NodePath, data: Unit.NetworkData): + Network.update_unit.rpc(path, inst_to_dict(data)) + + func array_intersect(first, second): var compare = {} for value in first: -- cgit v1.2.3