gameServer2/src/server/client.rs
changeset 13423 87a6cad20c90
parent 13419 81e0ed105f5d
child 13447 f748a72432f2
equal deleted inserted replaced
13422:5fb27f94fc3b 13423:87a6cad20c90
     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 is_in_game: bool,
    10     pub teams_in_game: u8,
    11     pub teams_in_game: u8,
       
    12     pub team_indices: Vec<u8>,
    11     pub clan: Option<u8>,
    13     pub clan: Option<u8>,
    12     pub is_joined_mid_game: bool,
    14     pub is_joined_mid_game: bool,
    13 }
    15 }
    14 
    16 
    15 impl HWClient {
    17 impl HWClient {
    19             room_id: None,
    21             room_id: None,
    20             nick: String::new(),
    22             nick: String::new(),
    21             protocol_number: 0,
    23             protocol_number: 0,
    22             is_master: false,
    24             is_master: false,
    23             is_ready: false,
    25             is_ready: false,
       
    26             is_in_game: false,
    24             teams_in_game: 0,
    27             teams_in_game: 0,
       
    28             team_indices: Vec::new(),
    25             clan: None,
    29             clan: None,
    26             is_joined_mid_game: false,
    30             is_joined_mid_game: false,
    27         }
    31         }
    28     }
    32     }
    29 }
    33 }