From eb160aef318d75fc5d3ab1defed75274699486a5 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 16 May 2023 19:20:12 +0300 Subject: [PATCH] feat(client): change some i16s to usizes --- client/src/api/game/mod.rs | 2 +- client/src/game_status/mod.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/api/game/mod.rs b/client/src/api/game/mod.rs index 0ed21ab..99c476c 100644 --- a/client/src/api/game/mod.rs +++ b/client/src/api/game/mod.rs @@ -40,7 +40,7 @@ pub enum Command { /// take a card from pile N TakeFromPile { index: usize, - for_cost: i16, + for_cost: usize, }, /// draw N amount of cards from deck Draw { diff --git a/client/src/game_status/mod.rs b/client/src/game_status/mod.rs index a598c25..e5744ea 100644 --- a/client/src/game_status/mod.rs +++ b/client/src/game_status/mod.rs @@ -28,7 +28,7 @@ pub struct Card { pub short_details: Vec, /// longer explanations of features of the card pub long_details: Vec, - pub cost: i16, + pub cost: usize, /// if set, use this? //vp_cost: Option, pub actions: Vec, @@ -58,10 +58,10 @@ pub struct PlayerStatus { pub turn_n: usize, pub display_name: String, pub state: PlayerState, - pub plays: i16, - pub buys: i16, - pub currency: i16, - pub vp: i16, + pub plays: usize, + pub buys: usize, + pub currency: usize, + pub vp: usize, pub hand: Vec, pub deck: Vec, pub discard: Vec, -- 2.44.1