DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

8ff7082fab928e954c84a91bc6d7aeea4ac35723 — Jonni Liljamo 1 year, 5 months ago d4d7329
fix(client): rename action phase to play phase
M client/src/game_status/mod.rs => client/src/game_status/mod.rs +2 -2
@@ 46,8 46,8 @@ pub struct SupplyPile {
pub enum PlayerState {
    /// e.g. not their turn
    Idle,
    /// action phase, playing cards
    ActionPhase,
    /// play phase, playing cards
    PlayPhase,
    /// buy phase, buying cards
    BuyPhase,
}

M client/src/game_status/parser.rs => client/src/game_status/parser.rs +2 -2
@@ 135,8 135,8 @@ pub fn parse(game: &Game) -> Result<GameStatus, ()> {
                // set player to idle
                invoker.state = PlayerState::Idle;

                // set the target to action phase
                target.state = PlayerState::ActionPhase;
                // set the target to the play phase
                target.state = PlayerState::PlayPhase;

                // clear currency
                invoker.currency = 0;

M client/src/plugins/game/ui/mod.rs => client/src/plugins/game/ui/mod.rs +1 -1
@@ 196,7 196,7 @@ fn hardcoded_init(game: &Game, create_action_ev_w: &mut EventWriter<GameActionCr
            &game.host_id,
            &game.host_id,
            &Command::ChangePlayerState {
                state: PlayerState::ActionPhase,
                state: PlayerState::PlayPhase,
            },
            fastrand::u64(u64::MIN..=u64::MAX),
        ),