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

            readTags.Add(reader.PeekTag());
            Marker.ReadBinary(reader);

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

                switch (subTag)
                {
                case "INDX":
                    if (BodyModels == null)
                    {
                        BodyModels = new List <BodyModel>();
                    }

                    BodyModel tempINDX = new BodyModel();
                    tempINDX.ReadBinary(reader);
                    BodyModels.Add(tempINDX);
                    break;

                default:
                    return;
                }

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

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

            if (ele.TryPathTo("BodyModels", false, out subEle))
            {
                if (BodyModels == null)
                {
                    BodyModels = new List <BodyModel>();
                }

                foreach (XElement e in subEle.Elements())
                {
                    BodyModel temp = new BodyModel();
                    temp.ReadXML(e, master);
                    BodyModels.Add(temp);
                }
            }
        }
Example #3
0
 public BodyModel(BodyModel copyObject)
 {
 }