aboutsummaryrefslogtreecommitdiff
path: root/client/multiplayer.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-29 16:18:30 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-29 16:18:30 +0200
commit7019639f351d4d775a00061b1e22beb309c5dbbb (patch)
treeb62a558e884709bddf7fc2672e83aa5c904ad198 /client/multiplayer.gd
parent58f4ab0b26948bec13ba853c90298271e472169f (diff)
downloadhurrycurry-7019639f351d4d775a00061b1e22beb309c5dbbb.tar
hurrycurry-7019639f351d4d775a00061b1e22beb309c5dbbb.tar.bz2
hurrycurry-7019639f351d4d775a00061b1e22beb309c5dbbb.tar.zst
add points to overlay
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r--client/multiplayer.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index 00bf193b..6ea36595 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -42,7 +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 score(demands_failed: int, demands_completed: int, points: int)
signal connection_closed(reason: String)
@@ -175,7 +175,8 @@ func handle_packet(bytes: PackedByteArray):
"score":
var demands_failed: int = decoded["demands_failed"]
var demands_completed: int = decoded["demands_completed"]
- emit_signal("score", demands_failed, demands_completed)
+ var points: int = decoded["points"]
+ emit_signal("score", demands_failed, demands_completed, points)
_:
push_error("Unrecognized packet type: %s" % packet_type)