protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Male", true, out subEle);
            MaleVoice.WriteXML(subEle, master);

            ele.TryPathTo("Female", true, out subEle);
            FemaleVoice.WriteXML(subEle, master);
        }
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Male", false, out subEle))
            {
                MaleVoice.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Female", false, out subEle))
            {
                FemaleVoice.ReadXML(subEle, master);
            }
        }
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 MaleVoice.ReadBinary(subReader);
                 FemaleVoice.ReadBinary(subReader);
             }
             catch
             {
                 return;
             }
         }
 }
 protected override void WriteData(ESPWriter writer)
 {
     MaleVoice.WriteBinary(writer);
     FemaleVoice.WriteBinary(writer);
 }
 public override int GetHashCode()
 {
     return(MaleVoice.GetHashCode());
 }