Example #1
0
 public AssetBundleNameDirData(string path, AssetBundleNameXmlPath xmlPath)
 {
     m_dirPath     = path;
     m_xmlPath     = xmlPath;
     m_fullDirPath = ExportUtil.getDataPath(m_dirPath);
     m_fullDirPath = UtilPath.normalPath(m_fullDirPath);
     m_filesList   = new List <AssetBundleNameFileData>();
 }
        public void parseXml(string path, AssetBundleNameXmlData data)
        {
            XmlDocument xmlDoc = new XmlDocument();

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

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

            foreach (XmlNode packNode in packNodeList)
            {
                packElem = (XmlElement)packNode;

                xmlPath = new AssetBundleNameXmlPath();
                data.m_pathList.Add(xmlPath);
                xmlPath.parseXml(packElem);
            }
        }