gameServer2/src/server/server.rs
changeset 13445 d3c86ade3d4d
parent 13442 c6a3784ff2c1
child 13478 d79795acaa73
--- a/gameServer2/src/server/server.rs	Fri Jul 06 16:27:25 2018 +0200
+++ b/gameServer2/src/server/server.rs	Fri Jul 06 16:59:52 2018 +0200
@@ -132,4 +132,8 @@
             (c, None)
         }
     }
-}
\ No newline at end of file
+
+    pub fn room(&mut self, client_id: ClientId) -> Option<&mut HWRoom> {
+        self.client_and_room(client_id).1
+    }
+}