// Token: 0x060010CC RID: 4300 RVA: 0x0001744C File Offset: 0x0001564C public static GameRoomData Deserialize(Stream bytes) { int num = Int32Proxy.Deserialize(bytes); GameRoomData gameRoomData = new GameRoomData(); gameRoomData.ConnectedPlayers = Int32Proxy.Deserialize(bytes); gameRoomData.GameFlags = Int32Proxy.Deserialize(bytes); gameRoomData.GameMode = EnumProxy <GameModeType> .Deserialize(bytes); if ((num & 1) != 0) { gameRoomData.Guid = StringProxy.Deserialize(bytes); } gameRoomData.IsPasswordProtected = BooleanProxy.Deserialize(bytes); gameRoomData.IsPermanentGame = BooleanProxy.Deserialize(bytes); gameRoomData.KillLimit = Int32Proxy.Deserialize(bytes); gameRoomData.LevelMax = ByteProxy.Deserialize(bytes); gameRoomData.LevelMin = ByteProxy.Deserialize(bytes); gameRoomData.MapID = Int32Proxy.Deserialize(bytes); if ((num & 2) != 0) { gameRoomData.Name = StringProxy.Deserialize(bytes); } gameRoomData.Number = Int32Proxy.Deserialize(bytes); gameRoomData.PlayerLimit = Int32Proxy.Deserialize(bytes); if ((num & 4) != 0) { gameRoomData.Server = ConnectionAddressProxy.Deserialize(bytes); } gameRoomData.TimeLimit = Int32Proxy.Deserialize(bytes); return(gameRoomData); }
// Token: 0x060010C6 RID: 4294 RVA: 0x000170AC File Offset: 0x000152AC public static GameRoom Deserialize(Stream bytes) { int num = Int32Proxy.Deserialize(bytes); GameRoom gameRoom = new GameRoom(); gameRoom.MapId = Int32Proxy.Deserialize(bytes); gameRoom.Number = Int32Proxy.Deserialize(bytes); if ((num & 1) != 0) { gameRoom.Server = ConnectionAddressProxy.Deserialize(bytes); } return(gameRoom); }