aboutsummaryrefslogtreecommitdiff
path: root/client/multiplayer.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-27 18:23:24 +0200
committernokoe <nokoe@mailbox.org>2024-06-27 18:23:24 +0200
commit2e044d142897038b18ff95fa6087064fc4ff3d89 (patch)
tree20e22bb42762e5e5d4d55e849da05840695f47a0 /client/multiplayer.gd
parent5a94633c97363779ba05f02c8d1a88ddbbf21707 (diff)
downloadhurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar
hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar.bz2
hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar.zst
implement score
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r--client/multiplayer.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index ecb987d6..eb85898c 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -42,6 +42,7 @@ signal remove_player_item(player: int)
signal set_progress(tile: Vector2i, progress: float, warn: bool)
signal set_finished(tile: Vector2i, warn: bool)
signal set_ingame(state: bool)
+signal score(demands_failed: int, demands_completed: int)
signal connection_closed(reason: String)
@@ -171,6 +172,9 @@ func handle_packet(bytes: PackedByteArray):
"error":
var message = decoded["message"]
push_warning("server error: %s" % message)
+ "score":
+ var demands_failed: int = decoded["demands_failed"]
+ var demands_completed: int = decoded["demands_completed"]
_:
push_error("Unrecognized packet type: %s" % packet_type)