DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

eb160aef318d75fc5d3ab1defed75274699486a5 — Jonni Liljamo 1 year, 7 months ago 85a6709
feat(client): change some i16s to usizes
2 files changed, 6 insertions(+), 6 deletions(-)

M client/src/api/game/mod.rs
M client/src/game_status/mod.rs
M client/src/api/game/mod.rs => client/src/api/game/mod.rs +1 -1
@@ 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 {

M client/src/game_status/mod.rs => client/src/game_status/mod.rs +5 -5
@@ 28,7 28,7 @@ pub struct Card {
    pub short_details: Vec<String>,
    /// longer explanations of features of the card
    pub long_details: Vec<String>,
    pub cost: i16,
    pub cost: usize,
    /// if set, use this?
    //vp_cost: Option<u32>,
    pub actions: Vec<CardAction>,


@@ 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<Card>,
    pub deck: Vec<Card>,
    pub discard: Vec<Card>,