22 lines
724 B
C#
22 lines
724 B
C#
using PkmnLibSharp.FFI;
|
|
using PkmnLibSharp.Utils;
|
|
using Interface = PkmnLibSharp.FFI.DynamicData.Libraries.BattleStatCalculator;
|
|
|
|
namespace PkmnLibSharp.DynamicData.Libraries
|
|
{
|
|
public abstract class BattleStatCalculator : HandleType
|
|
{
|
|
protected BattleStatCalculator(FFIHandle handle) : base(handle){}
|
|
}
|
|
|
|
public class Gen7BattleStatCalculator : BattleStatCalculator
|
|
{
|
|
protected Gen7BattleStatCalculator(FFIHandle handle) : base(handle){}
|
|
|
|
public static Gen7BattleStatCalculator Create()
|
|
{
|
|
var handle = Interface.gen_7_battle_stat_calculator_new();
|
|
return Resolver.Instance.ResolveGen7BattleStatCalculator(handle.Resolve());
|
|
}
|
|
}
|
|
} |