PkmnLibSharp/PkmnLibSharp/Library/GrowthRates/GrowthRate.cs

26 lines
663 B
C#
Raw Normal View History

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;
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;
Creaturelib.Generated.GrowthRate.CalculateExperience(ref i, Ptr, level).Assert();
2020-05-05 20:40:17 +00:00
return i;
}
}
}