diff -r 1ddb8aac5e30 -r 1e39b8749072 gameServer2/src/server/room.rs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gameServer2/src/server/room.rs Thu Mar 08 15:01:18 2018 -0500 @@ -0,0 +1,21 @@ +pub type RoomId = usize; + +pub struct HWRoom { + pub id: RoomId, + pub name: String, + pub password: Option, + pub protocol_number: u32, + pub ready_players_number: u8, +} + +impl HWRoom { + pub fn new(id: RoomId) -> HWRoom { + HWRoom { + id, + name: String::new(), + password: None, + protocol_number: 0, + ready_players_number: 0, + } + } +} \ No newline at end of file