From 7019639f351d4d775a00061b1e22beb309c5dbbb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 29 Jun 2024 16:18:30 +0200 Subject: add points to overlay --- client/multiplayer.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/multiplayer.gd') 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) -- cgit v1.2.3-70-g09d2