gameServer2/src/server/room.rs
changeset 13810 0463a4221327
parent 13775 5fb40c8e5542
child 14371 31717e1436cd
equal deleted inserted replaced
13809:201d86010a8b 13810:0463a4221327
     6         ClientId, RoomId, TeamInfo, GameCfg, GameCfg::*, Voting,
     6         ClientId, RoomId, TeamInfo, GameCfg, GameCfg::*, Voting,
     7         MAX_HEDGEHOGS_PER_TEAM
     7         MAX_HEDGEHOGS_PER_TEAM
     8     },
     8     },
     9     client::{HWClient}
     9     client::{HWClient}
    10 };
    10 };
       
    11 use bitflags::*;
    11 use serde::{Serialize, Deserialize};
    12 use serde::{Serialize, Deserialize};
       
    13 use serde_derive::{Serialize, Deserialize};
    12 use serde_yaml;
    14 use serde_yaml;
    13 
    15 
    14 const MAX_TEAMS_IN_ROOM: u8 = 8;
    16 const MAX_TEAMS_IN_ROOM: u8 = 8;
    15 const MAX_HEDGEHOGS_IN_ROOM: u8 =
    17 const MAX_HEDGEHOGS_IN_ROOM: u8 =
    16     MAX_HEDGEHOGS_PER_TEAM * MAX_HEDGEHOGS_PER_TEAM;
    18     MAX_HEDGEHOGS_PER_TEAM * MAX_HEDGEHOGS_PER_TEAM;