DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

9da70be7cce4ca97c3d5edc4bd432cecf49b207f — Jonni Liljamo 1 year, 5 months ago da84329
feat(client): add plays and buys for players
2 files changed, 6 insertions(+), 0 deletions(-)

M client/src/game_status/mod.rs
M client/src/game_status/parser.rs
M client/src/game_status/mod.rs => client/src/game_status/mod.rs +2 -0
@@ 54,6 54,8 @@ pub enum PlayerState {

pub struct PlayerStatus {
    pub state: PlayerState,
    pub plays: i16,
    pub buys: i16,
    pub currency: i16,
    pub vp: i16,
    pub hand: Vec<Card>,

M client/src/game_status/parser.rs => client/src/game_status/parser.rs +4 -0
@@ 52,6 52,8 @@ pub fn parse(game: &Game) -> Result<GameStatus, ()> {
        game.host_id.clone(),
        PlayerStatus {
            state: PlayerState::Idle,
            plays: 0,
            buys: 0,
            currency: 0,
            vp: 2,
            hand: vec![],


@@ 64,6 66,8 @@ pub fn parse(game: &Game) -> Result<GameStatus, ()> {
        game.guest_id.clone(),
        PlayerStatus {
            state: PlayerState::Idle,
            plays: 0,
            buys: 0,
            currency: 0,
            vp: 2,
            hand: vec![],