using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;

namespace YooAsset.Editor
{
    public class TaskCreateCatalog
    {
        /// <summary>
        /// 生成内置资源记录文件
        /// </summary>
        internal void CreateCatalogFile(BuildParametersContext buildParametersContext)
        {
            string buildinRootDirectory = buildParametersContext.GetBuildinRootDirectory();
            string buildPackageName = buildParametersContext.Parameters.PackageName;
            DefaultBuildinFileSystemBuild.CreateBuildinCatalogFile(buildPackageName, buildinRootDirectory);

            // 刷新目录
            AssetDatabase.Refresh();
        }
    }
}