protected override void ReadData(ESPReader reader) { using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size))) using (ESPReader subReader = new ESPReader(stream, reader.Plugin)) { try { if (false)//subReader.Plugin.Header.Flags.HasFlag(RecordFlag.Localized) && size == 4) { LocalizedID = subReader.ReadUInt32(); if (LocalizedID == 0) { Value = ""; } else { Value = LocalizedStrings.GetLocalizedString(LocalizedID, subReader.Plugin.Name.ToLower(), LocalizedStringType.Strings); } } else { Value = subReader.ReadString(); } } catch { return; } } }
protected override void ReadData(ESPReader reader) { using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size))) using (ESPReader subReader = new ESPReader(stream, reader.Plugin)) { try { Percentage = subReader.ReadByte(); Model = subReader.ReadString(); HasCollisionData = subReader.ReadEnum <NoYesByte>(); } catch { return; } } }