Files
aibis-dream/Assets/Scripts/Framework/PoolKit/Pool/IPool.cs
T
2024-09-19 01:12:10 +08:00

23 lines
393 B
C#

/*
* 对象池接口
*/
namespace AibisDream.Kit
{
public interface IPool<T>
{
/// <summary>
/// 分配对象
/// </summary>
/// <returns></returns>
T Allocate();
/// <summary>
/// 回收对象
/// </summary>
/// <param name="obj"></param>
/// <returns></returns>
bool Recycle(T obj);
}
}