using PkmnLibSharp.Utilities;

namespace PkmnLibSharp.Library.GrowthRates
{
    public class LookupGrowthRate : GrowthRate
    {
        public LookupGrowthRate(uint[] experiencePerLevel) : base(
            Creatureliblibrary.Generated.LookupGrowthRate.Construct(experiencePerLevel.ArrayPtr(),
                (ulong) experiencePerLevel.Length))
        {
        }

        protected override void DeletePtr()
        {
            Creatureliblibrary.Generated.LookupGrowthRate.Destruct(Ptr);
        }
    }
}