gameServer2/src/server/room.rs
changeset 13482 f748a72432f2
parent 13448 2501428303a2
child 13483 d79795acaa73
equal deleted inserted replaced
13451:dd2e51f7303d 13482:f748a72432f2
   111     pub id: RoomId,
   111     pub id: RoomId,
   112     pub master_id: Option<ClientId>,
   112     pub master_id: Option<ClientId>,
   113     pub name: String,
   113     pub name: String,
   114     pub password: Option<String>,
   114     pub password: Option<String>,
   115     pub protocol_number: u32,
   115     pub protocol_number: u32,
       
   116     pub greeting: String,
       
   117     pub is_fixed: bool,
   116 
   118 
   117     pub players_number: u32,
   119     pub players_number: u32,
   118     pub default_hedgehog_number: u8,
   120     pub default_hedgehog_number: u8,
   119     pub team_limit: u8,
   121     pub team_limit: u8,
   120     pub ready_players_number: u8,
   122     pub ready_players_number: u8,
   128         HWRoom {
   130         HWRoom {
   129             id,
   131             id,
   130             master_id: None,
   132             master_id: None,
   131             name: String::new(),
   133             name: String::new(),
   132             password: None,
   134             password: None,
       
   135             greeting: "".to_string(),
       
   136             is_fixed: false,
   133             protocol_number: 0,
   137             protocol_number: 0,
   134             players_number: 0,
   138             players_number: 0,
   135             default_hedgehog_number: 4,
   139             default_hedgehog_number: 4,
   136             team_limit: 8,
   140             team_limit: 8,
   137             ready_players_number: 0,
   141             ready_players_number: 0,