gameServer2/src/server/client.rs
changeset 13419 81e0ed105f5d
parent 13119 1e39b8749072
child 13423 87a6cad20c90
equal deleted inserted replaced
13418:bb24c3414b0d 13419:81e0ed105f5d
     5     pub room_id: Option<usize>,
     5     pub room_id: Option<usize>,
     6     pub nick: String,
     6     pub nick: String,
     7     pub protocol_number: u32,
     7     pub protocol_number: u32,
     8     pub is_master: bool,
     8     pub is_master: bool,
     9     pub is_ready: bool,
     9     pub is_ready: bool,
       
    10     pub teams_in_game: u8,
       
    11     pub clan: Option<u8>,
    10     pub is_joined_mid_game: bool,
    12     pub is_joined_mid_game: bool,
    11 }
    13 }
    12 
    14 
    13 impl HWClient {
    15 impl HWClient {
    14     pub fn new(id: ClientId) -> HWClient {
    16     pub fn new(id: ClientId) -> HWClient {
    17             room_id: None,
    19             room_id: None,
    18             nick: String::new(),
    20             nick: String::new(),
    19             protocol_number: 0,
    21             protocol_number: 0,
    20             is_master: false,
    22             is_master: false,
    21             is_ready: false,
    23             is_ready: false,
       
    24             teams_in_game: 0,
       
    25             clan: None,
    22             is_joined_mid_game: false,
    26             is_joined_mid_game: false,
    23         }
    27         }
    24     }
    28     }
    25 }
    29 }