gameServer2/src/server/room.rs
changeset 13426 f091f69d59e4
parent 13423 87a6cad20c90
child 13427 6f6a866c86a2
equal deleted inserted replaced
13425:50f852e7ad82 13426:f091f69d59e4
    50         }
    50         }
    51     }
    51     }
    52 }
    52 }
    53 
    53 
    54 pub struct GameInfo {
    54 pub struct GameInfo {
    55     pub teams_in_game: u8
    55     pub teams_in_game: u8,
       
    56     pub left_teams: Vec<String>
       
    57 }
       
    58 
       
    59 impl GameInfo {
       
    60     pub fn new(teams_number: u8) -> GameInfo {
       
    61         GameInfo {
       
    62             teams_in_game: teams_number,
       
    63             left_teams: Vec::new()
       
    64         }
       
    65     }
    56 }
    66 }
    57 
    67 
    58 pub struct HWRoom {
    68 pub struct HWRoom {
    59     pub id: RoomId,
    69     pub id: RoomId,
    60     pub master_id: Option<ClientId>,
    70     pub master_id: Option<ClientId>,