예제 #1
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Unknown1", false, out subEle))
            {
                Unknown1 = subEle.ToBytes();
            }

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

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

            if (ele.TryPathTo("Grid/X", false, out subEle))
            {
                GridX = subEle.ToInt16();
            }

            if (ele.TryPathTo("Grid/Y", false, out subEle))
            {
                GridY = subEle.ToInt16();
            }

            if (ele.TryPathTo("Unknown2", false, out subEle))
            {
                Unknown2 = subEle.ToBytes();
            }
        }
예제 #2
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

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

            if (ele.TryPathTo("Unknown", false, out subEle))
            {
                Unknown = subEle.ToUInt32();
            }
        }
예제 #3
0
        public void ReadXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Unknown", false, out subEle))
            {
                Unknown = subEle.ToBytes();
            }

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

            if (ele.TryPathTo("Triangle", false, out subEle))
            {
                Triangle = subEle.ToUInt16();
            }
        }