Exemplo n.º 1
0
        public PatchUnpackerOperation CreatePatchUnpackerByAll(int fileUpackingMaxNumber, int failedTryAgain)
        {
            List <BundleInfo> unpcakList = PatchHelper.GetUnpackListByAll(AppPatchManifest);
            var operation = new PatchUnpackerOperation(unpcakList, fileUpackingMaxNumber, failedTryAgain);

            return(operation);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 创建补丁解压器
 /// </summary>
 /// <param name="unpackingMaxNumber">同时解压的最大文件数</param>
 /// <param name="failedTryAgain">解压失败的重试次数</param>
 public static PatchUnpackerOperation CreatePatchUnpacker(int unpackingMaxNumber, int failedTryAgain)
 {
     DebugCheckInitialize();
     if (_playMode == EPlayMode.EditorSimulateMode)
     {
         List <BundleInfo> downloadList = new List <BundleInfo>();
         var operation = new PatchUnpackerOperation(downloadList, unpackingMaxNumber, failedTryAgain);
         return(operation);
     }
     else if (_playMode == EPlayMode.OfflinePlayMode)
     {
         return(_offlinePlayModeImpl.CreatePatchUnpackerByAll(unpackingMaxNumber, failedTryAgain));
     }
     else if (_playMode == EPlayMode.HostPlayMode)
     {
         return(_hostPlayModeImpl.CreatePatchUnpackerByAll(unpackingMaxNumber, failedTryAgain));
     }
     else
     {
         throw new NotImplementedException();
     }
 }