Exemple #1
0
        public override void ReadBinary(ESPReader reader)
        {
            List <string> readTags = new List <string>();

            while (reader.BaseStream.Position < reader.BaseStream.Length)
            {
                string subTag = reader.PeekTag();

                switch (subTag)
                {
                case "RPLI":
                    if (readTags.Contains("RPLI"))
                    {
                        return;
                    }
                    if (EdgeFallOff == null)
                    {
                        EdgeFallOff = new SimpleSubrecord <UInt32>();
                    }

                    EdgeFallOff.ReadBinary(reader);
                    break;

                case "RPLD":
                    if (readTags.Contains("RPLD"))
                    {
                        return;
                    }
                    if (PointList == null)
                    {
                        PointList = new RegionPointList();
                    }

                    PointList.ReadBinary(reader);
                    break;

                default:
                    return;
                }

                readTags.Add(subTag);
            }
        }
Exemple #2
0
        public override void ReadXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("EdgeFallOff", false, out subEle))
            {
                if (EdgeFallOff == null)
                {
                    EdgeFallOff = new SimpleSubrecord <UInt32>();
                }

                EdgeFallOff.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("PointList", false, out subEle))
            {
                if (PointList == null)
                {
                    PointList = new RegionPointList();
                }

                PointList.ReadXML(subEle, master);
            }
        }
Exemple #3
0
 public RegionArea(SimpleSubrecord <UInt32> EdgeFallOff, RegionPointList PointList)
 {
     this.EdgeFallOff = EdgeFallOff;
     this.PointList   = PointList;
 }