diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-27 18:23:24 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-06-27 18:23:24 +0200 |
commit | 2e044d142897038b18ff95fa6087064fc4ff3d89 (patch) | |
tree | 20e22bb42762e5e5d4d55e849da05840695f47a0 /client/multiplayer.gd | |
parent | 5a94633c97363779ba05f02c8d1a88ddbbf21707 (diff) | |
download | hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar.bz2 hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar.zst |
implement score
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r-- | client/multiplayer.gd | 4 |
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) |