示例#1
0
        private int parseMapFiles()
        {
            UpdateLog.DEBUG_LOG("解析map文件+++");
            int num = 1;

            RepairList.Clear();
            this.BackDownloadList.Clear();
            _backDownloadDict.Clear();
            this._parsedMapDataList.Clear();
            string resourceUrl = "";

            for (int i = 0; i < this._currentData.VersionModelBaseList.Count; i++)
            {
                VersionModel model   = this._currentData.VersionModelBaseList[i];
                string       str2    = model.Map_url.Replace(@"\", "/");
                string       str3    = str2.Substring(str2.LastIndexOf("/") + 1);
                string       mapFile = Path.Combine(BaseFlow._storeDir, str3);
                resourceUrl = model.ResourceUrl;
                MapFileManage manage = new MapFileManage();
                num = manage.parseMapFile(mapFile, model.ResourceUrl, BaseFlow._storeDir);
                if (num <= -1)
                {
                    return(num);
                }
                this._parsedMapDataList.AddRange(manage.GetMapFileDataList());
            }
            UpdateLog.DEBUG_LOG("解析map文件---");
            return(num);
        }
示例#2
0
 public override void Uninitialize()
 {
     if (RepairList != null)
     {
         RepairList.Clear();
     }
     if (this._parsedMapDataList != null)
     {
         this._parsedMapDataList.Clear();
     }
 }