DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

83e9f077ceca63ce034324120c53c556fa0175e0 — Jonni Liljamo 1 year, 7 months ago ca0db06
feat(client): invoke spawn hand event
1 files changed, 6 insertions(+), 2 deletions(-)

M client/src/plugins/game/mod.rs
M client/src/plugins/game/mod.rs => client/src/plugins/game/mod.rs +6 -2
@@ 11,7 11,7 @@ use bevy_rapier3d::prelude::*;

use crate::{api::game::Game, game_status::GameStatus, AppState, Global};

use self::supply::SpawnSupplyPilesEvent;
use self::{hand::SpawnHandEvent, supply::SpawnSupplyPilesEvent};

use super::GameDetailsCallEvent;



@@ 85,6 85,10 @@ fn handle_refresh_game_event(

pub struct FinishedRefreshGameEvent;

fn handle_finished_refresh_game_event(mut ssp_ev_w: EventWriter<SpawnSupplyPilesEvent>) {
fn handle_finished_refresh_game_event(
    mut ssp_ev_w: EventWriter<SpawnSupplyPilesEvent>,
    mut sh_ev_w: EventWriter<SpawnHandEvent>,
) {
    ssp_ev_w.send(SpawnSupplyPilesEvent);
    sh_ev_w.send(SpawnHandEvent);
}