Esempio n. 1
0
        public void parseXml(string path, AtlasXmlData data)
        {
            XmlDocument xmlDoc = new XmlDocument();

            xmlDoc.Load(path);
            XmlNode rootNode = xmlDoc.SelectSingleNode("Root");

            XmlNodeList  packNodeList = rootNode.ChildNodes;
            XmlElement   packElem;
            AtlasXmlPath xmlPath;

            AtlasXmlParentPath atlasXmlParentPath = null;

            foreach (XmlNode packNode in packNodeList)
            {
                packElem = (XmlElement)packNode;
                if (ExportUtil.getXmlAttrStr(packElem.Attributes["parentpath"]) == UtilApi.TRUE)
                {
                    if (atlasXmlParentPath == null)
                    {
                        atlasXmlParentPath = new AtlasXmlParentPath();
                    }
                    atlasXmlParentPath.parseXml(packElem, data);
                }
                else
                {
                    xmlPath = new AtlasXmlPath();
                    data.m_pathList.Add(xmlPath);
                    xmlPath.parseXml(packElem);
                }
            }
        }
Esempio n. 2
0
        public void parseXml(XmlElement packElem, AtlasXmlData data)
        {
            m_data         = data;
            m_inPath       = ExportUtil.getXmlAttrStr(packElem.Attributes["inpath"]);
            m_outPath      = ExportUtil.getXmlAttrStr(packElem.Attributes["outpath"]);
            m_ignoreExtStr = ExportUtil.getXmlAttrStr(packElem.Attributes["ignoreext"]);
            m_resType      = ExportUtil.getXmlAttrUInt(packElem.Attributes["restype"]);

            m_fullDirPath = ExportUtil.getDataPath(m_inPath);
            m_fullDirPath = ExportUtil.normalPath(m_fullDirPath);

            findAllFiles();
        }
 public CreateAtlasPrefabSys()
 {
     m_atlasXmlData = new AtlasXmlData();
 }
Esempio n. 4
0
 public CreateAtlasPrefabSys()
 {
     m_atlasXmlData = new AtlasXmlData();
 }
Esempio n. 5
0
        public void parseXml(string path, AtlasXmlData data)
        {
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(path);
            XmlNode rootNode = xmlDoc.SelectSingleNode("Root");

            XmlNodeList packNodeList = rootNode.ChildNodes;
            XmlElement packElem;
            AtlasXmlPath xmlPath;

            AtlasXmlParentPath atlasXmlParentPath = null;

            foreach (XmlNode packNode in packNodeList)
            {
                packElem = (XmlElement)packNode;
                if (ExportUtil.getXmlAttrStr(packElem.Attributes["parentpath"]) == UtilApi.TRUE)
                {
                    if(atlasXmlParentPath == null)
                    {
                        atlasXmlParentPath = new AtlasXmlParentPath();
                    }
                    atlasXmlParentPath.parseXml(packElem, data);
                }
                else
                {
                    xmlPath = new AtlasXmlPath();
                    data.m_pathList.Add(xmlPath);
                    xmlPath.parseXml(packElem);
                }
            }
        }
Esempio n. 6
0
        public void parseXml(XmlElement packElem, AtlasXmlData data)
        {
            m_data = data;
            m_inPath = ExportUtil.getXmlAttrStr(packElem.Attributes["inpath"]);
            m_outPath = ExportUtil.getXmlAttrStr(packElem.Attributes["outpath"]);
            m_ignoreExtStr = ExportUtil.getXmlAttrStr(packElem.Attributes["ignoreext"]);
            m_resType = ExportUtil.getXmlAttrUInt(packElem.Attributes["restype"]);

            m_fullDirPath = ExportUtil.getDataPath(m_inPath);
            m_fullDirPath = ExportUtil.normalPath(m_fullDirPath);

            findAllFiles();
        }