2020-05-05 20:40:17 +00:00
|
|
|
using System;
|
|
|
|
using PkmnLibSharp.Utilities;
|
|
|
|
|
|
|
|
namespace PkmnLibSharp.Library.GrowthRates
|
|
|
|
{
|
|
|
|
public abstract class GrowthRate : PointerWrapper
|
|
|
|
{
|
|
|
|
internal GrowthRate(IntPtr ptr) : base(ptr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte CalculateLevel(uint experience)
|
|
|
|
{
|
|
|
|
byte b = 0;
|
2020-07-31 12:19:21 +00:00
|
|
|
Creaturelib.Generated.GrowthRate.CalculateLevel(ref b, Ptr, experience).Assert();
|
2020-05-05 20:40:17 +00:00
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
public uint CalculateExperience(byte level)
|
|
|
|
{
|
|
|
|
uint i = 0;
|
2020-07-31 12:19:21 +00:00
|
|
|
Creaturelib.Generated.GrowthRate.CalculateExperience(ref i, Ptr, level).Assert();
|
2020-05-05 20:40:17 +00:00
|
|
|
return i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|