Exemple #1
0
        public void ReadXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Name", false, out subEle))
            {
                Name = subEle.Value;
            }

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

            if (ele.TryPathTo("Index", false, out subEle))
            {
                Index = subEle.ToInt32();
            }
        }