gameServer2/src/server/server.rs
changeset 12148 8591375271b8
parent 12147 03ccb89820f3
child 12852 bd35cb2302b3
equal deleted inserted replaced
12147:03ccb89820f3 12148:8591375271b8
    92 
    92 
    93 pub struct HWRoom {
    93 pub struct HWRoom {
    94     pub id: Token,
    94     pub id: Token,
    95     pub name: String,
    95     pub name: String,
    96     pub password: Option<String>,
    96     pub password: Option<String>,
       
    97     pub protocol_number: u32,
    97     pub ready_players_number: u8,
    98     pub ready_players_number: u8,
    98 }
    99 }
    99 
   100 
   100 impl HWRoom {
   101 impl HWRoom {
   101     pub fn new() -> HWRoom {
   102     pub fn new() -> HWRoom {
   102         HWRoom {
   103         HWRoom {
   103             id: Token(0),
   104             id: Token(0),
   104             name: String::new(),
   105             name: String::new(),
   105             password: None,
   106             password: None,
       
   107             protocol_number: 0,
   106             ready_players_number: 0,
   108             ready_players_number: 0,
   107         }
   109         }
   108     }
   110     }
   109 }
   111 }