Exemplo n.º 1
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 for (int i = 0; i < size / 4; i++)
                 {
                     var temp = new FormID();
                     temp.ReadBinary(subReader);
                     Forms.Add(temp);
                 }
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 2
0
        protected override void ReadData(ESPReader reader)
        {
            using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
                using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
                {
                    try
                    {
                        Unknown1.ReadBinary(subReader);
                        Int32 Unknown2Count = subReader.ReadInt32();

                        for (int i = 0; i < Unknown2Count; i++)
                        {
                            var temp = new FormID();
                            temp.ReadBinary(subReader);
                            Unknown2.Add(temp);
                        }
                        Int32 Unknown3Count = subReader.ReadInt32();

                        for (int i = 0; i < Unknown3Count; i++)
                        {
                            var temp = new FormID();
                            temp.ReadBinary(subReader);
                            Unknown3.Add(temp);
                        }
                        Int32 DoorsCount = subReader.ReadInt32();

                        for (int i = 0; i < DoorsCount; i++)
                        {
                            var temp = new FormID();
                            temp.ReadBinary(subReader);
                            Doors.Add(temp);
                        }
                    }
                    catch
                    {
                        return;
                    }
                }
        }