예제 #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 (HeadModels == null)
                    {
                        HeadModels = new List <HeadModel>();
                    }

                    HeadModel tempINDX = new HeadModel();
                    tempINDX.ReadBinary(reader);
                    HeadModels.Add(tempINDX);
                    break;

                default:
                    return;
                }

                readTags.Add(subTag);
            }
        }
예제 #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("HeadModels", false, out subEle))
            {
                if (HeadModels == null)
                {
                    HeadModels = new List <HeadModel>();
                }

                foreach (XElement e in subEle.Elements())
                {
                    HeadModel temp = new HeadModel();
                    temp.ReadXML(e, master);
                    HeadModels.Add(temp);
                }
            }
        }
예제 #3
0
 public HeadModel(HeadModel copyObject)
 {
 }