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); } } }
public DirData(string path, AtlasXmlPath xmlPath) { m_dirPath = path; m_xmlPath = xmlPath; m_fullDirPath = ExportUtil.getDataPath(m_dirPath); m_fullDirPath = ExportUtil.normalPath(m_fullDirPath); m_filesList = new List <FileData>(); }
public DirData(string path, AtlasXmlPath xmlPath) { m_dirPath = path; m_xmlPath = xmlPath; m_fullDirPath = ExportUtil.getDataPath(m_dirPath); m_fullDirPath = ExportUtil.normalPath(m_fullDirPath); m_filesList = new List<FileData>(); }
protected void onFindDir(DirectoryInfo dirInfo) { AtlasXmlPath xmlPath = new AtlasXmlPath(); m_data.m_pathList.Add(xmlPath); string inpath = string.Format("{0}/{1}", m_inPath, dirInfo.Name); string outpath = string.Format("{0}/{1}.asset", m_outPath, dirInfo.Name); xmlPath.setPathParam(inpath, outpath, m_ignoreExtStr, m_resType); }
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); } } }