namespace KYFramework;

public class ListComponent<T>: List<T>, IDisposable
{
    public static ListComponent<T> Create()
    {
        return Game.ObjectPool.Fetch(typeof (ListComponent<T>)) as ListComponent<T>;
    }

    public void Dispose()
    {
        this.Clear();
        Game.ObjectPool.Recycle(this);
    }
}