Esempio n. 1
0
 public PackByOneBundle(GOEPackV5 packSetting, PackBundleSetting packBundleSetting) : base(packSetting, packBundleSetting)
 {
     if (string.IsNullOrEmpty(packBundleSetting.BundleName))
     {
         throw new System.Exception("打包到同一Bundle必须在打包选项中指定Bundlename   " + packSetting.SrcDir);
     }
 }
Esempio n. 2
0
 public PackByFile(GOEPackV5 packSetting, PackBundleSetting packBundleSetting) : base(packSetting, packBundleSetting)
 {
 }
Esempio n. 3
0
 public PackByScene(GOEPackV5 packSetting, PackBundleSetting packBundleSetting) : base(packSetting, packBundleSetting)
 {
     //只处理.unity的文件
     packBundleSetting.SearchFilters = "*.unity";
 }
Esempio n. 4
0
 public PackByAtlas(GOEPackV5 packSetting, PackBundleSetting packBundleSetting) : base(packSetting, packBundleSetting)
 {
 }
Esempio n. 5
0
 public PackByUIPrefab(GOEPackV5 packSetting, PackBundleSetting packBundleSetting) : base(packSetting, packBundleSetting)
 {
 }
Esempio n. 6
0
        /// <summary>
        /// 创建具体分包对象
        /// </summary>
        /// <param name="packType"></param>
        /// <param name="packSetting"></param>
        /// <param name="packBundleSetting"></param>
        /// <returns></returns>
        public static PackHandlerBase CreatePackHalder(string packType, GOEPackV5 packSetting, PackBundleSetting packBundleSetting)
        {
            //if (!IsInitPackSystem)
            InitAssetPackSystem();

            if (!m_packHandlerDict.ContainsKey(packType))
            {
                Debug.LogError("can't implement packtype: " + packType);
                return(null);
            }

            Type handlerType = m_packHandlerDict[packType];

            PackHandlerBase handlerInstance = Activator.CreateInstance(handlerType, new object[] { packSetting, packBundleSetting }) as PackHandlerBase;

            return(handlerInstance);
        }
Esempio n. 7
0
 public PackByRawAsset(GOEPackV5 packSetting, PackBundleSetting packBundleSetting) : base(packSetting, packBundleSetting)
 {
 }
Esempio n. 8
0
 public PackHandlerBase(GOEPackV5 packSetting, PackBundleSetting packBundleSetting)
 {
     this.m_packSetting       = packSetting;
     this.m_packBundleSetting = packBundleSetting;
 }