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