diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-05 11:34:49 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-05 11:34:49 +0100 |
commit | c8f674ac6fa0914d9e448d2929f2385cdad80d60 (patch) | |
tree | a913454c42bb520aa644f4e2dcf0d42ba11c83de /Game/Client.gd | |
parent | 84365b6f901a9c0251a9f724a8d9f81a3787e97d (diff) |
next commit
Diffstat (limited to 'Game/Client.gd')
-rw-r--r-- | Game/Client.gd | 4 |
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: |