示例#1
0
        public static void GenerateLocal(JToken configJToken, string resourcePath, string filePath)
        {
            List <Group> listGroup = new List <Group>();

            GenerateUtil.GenerateConfig(listGroup, configJToken["assetsGroups"], resourcePath);

            //loading组
            var loadingGroup = listGroup.Find(item => item.Name == "loading");

            if (loadingGroup != null)
            {
                List <Res> listPreload = new List <Res>();

                var listConfig = SpecialFolderGenerate.GenerateConfig(resourcePath);
                var listFont   = SpecialFolderGenerate.GenerateFont(resourcePath);

                listPreload.AddRange(listConfig);
                listPreload.AddRange(listFont);

                loadingGroup.listRes.AddRange(listPreload);
                loadingGroup.Keys = loadingGroup.GenerateKey();
            }

            //生成文件
            GenerateUtil.GenerateFile(filePath, listGroup);
        }
示例#2
0
        public static void GenerateWeb(JToken configJToken, string resourcePath, string filePath)
        {
            List <Group> listGroup = new List <Group>();

            GenerateUtil.GenerateConfig(listGroup, configJToken["gangsterGroups"], resourcePath);

            if (AssetOperation.isGenerate && AssetOperation.ListChangeGroup.Count > 0)
            {
                listGroup.AddRange(AssetOperation.ListChangeGroup);
            }
            //生成文件
            GenerateUtil.GenerateFile(filePath, listGroup);
        }
示例#3
0
        public static void GenerateWeb(JToken configJToken, string resourcePath, string filePath)
        {
            List <Group> listGroup = new List <Group>();

            GenerateUtil.GenerateConfig(listGroup, configJToken["gangsterGroups"], resourcePath);

            if (UploadingTool.MainUploading.isUploading)
            {
                //添加修改的本地组
                listGroup.AddRange(UploadingTool.MainUploading.ListChangeGroup);
            }

            //生成文件
            GenerateUtil.GenerateFile(filePath, listGroup);
        }