Esempio n. 1
0
        private static void Pack()
        {
            string exppath = packSetting.GetPlatformBundleRelativePath(platform);

            PackRes_Common.PrintObjectInfo(packSetting);

            List <string> files = PackRes_Common.GetFileListRecursively(packSetting.res_path, packSetting.fileTypeList);

            foreach (string scene in files)
            {
                Debug.Log(scene);
            }
            Dictionary <string, string> idxMap = new Dictionary <string, string>();

            PackRes_Common.PackScenes(files, exppath, platform, idxMap);

            PackRes_Common.ExpIdxFile(packSetting.GetPlatformIdxFileFullPath(platform), idxMap, packSetting.index_file);
        }
Esempio n. 2
0
        private static List <PackRes_Def.BundleData> InitStandaloneDataList()
        {
            List <PackRes_Def.BundleData> bundleDataList = new List <PackRes_Def.BundleData>();

            List <string> files = PackRes_Common.GetFileListRecursively(packSetting.res_path, packSetting.fileTypeList);

            foreach (string file in files)
            {
                PackRes_Def.BundleData bundleData = new PackRes_Def.BundleData();
                bundleData.bundleFile  = PackRes_Def.bundlePrefix_standalone + Path.GetFileName(file) + ".bundle";
                bundleData.srcFiles    = new string[1];
                bundleData.srcFiles[0] = file;
                bundleData.names       = new string[1];
                bundleData.names[0]    = Path.GetFileName(file);
                bundleData.compress    = packSetting.compress;
                bundleData.option      = packSetting.option;

                bundleDataList.Add(bundleData);
            }
            return(bundleDataList);
        }