예제 #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);
                }
            }
        }
예제 #2
0
 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>();
 }
예제 #3
0
 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>();
 }
예제 #4
0
        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);
        }
예제 #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);
                }
            }
        }
예제 #6
0
        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);
        }