changeset 13492 | ba5211dddb21 |
parent 13486 | 1ee192f13456 |
child 13500 | 5359ff75da3a |
--- a/gameServer2/src/server/server.rs Fri Jul 13 19:52:19 2018 +0300 +++ b/gameServer2/src/server/server.rs Mon Jul 16 22:32:04 2018 +0300 @@ -94,6 +94,8 @@ } } + pub fn lobby(&self) -> &HWRoom { &self.rooms[self.lobby_id] } + pub fn has_room(&self, name: &str) -> bool { self.rooms.iter().any(|(_, r)| r.name == name) }