summaryrefslogtreecommitdiff
path: root/Game/Client.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-11-05 11:34:49 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-11-05 11:34:49 +0100
commitc8f674ac6fa0914d9e448d2929f2385cdad80d60 (patch)
treea913454c42bb520aa644f4e2dcf0d42ba11c83de /Game/Client.gd
parent84365b6f901a9c0251a9f724a8d9f81a3787e97d (diff)
next commit
Diffstat (limited to 'Game/Client.gd')
-rw-r--r--Game/Client.gd4
1 files changed, 4 insertions, 0 deletions
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: