using System.Collections;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
namespace BITKit.Pool
{
///
/// 对象池服务
///
public interface IPoolService
{
public int DefaultCapacity { get; set; }
///
/// 生成对象
///
/// 可寻址路径
/// 直接提供的预制体
/// 类型
///
UniTask Spawn(string path,object prefab=null) where T : class;
///
/// 回收对象
///
/// 对象实例
/// 可寻址路径
/// 类型
void Despawn(T obj,string path) where T : class;
///
/// 初始化,在此提前生成所有对象
///
///
UniTask InitializeAsync();
}
}