2020-05-19 12:25:21 +00:00
|
|
|
using System;
|
2020-05-04 16:17:26 +00:00
|
|
|
using PkmnLibSharp.Utilities;
|
|
|
|
|
|
|
|
namespace PkmnLibSharp.Library
|
|
|
|
{
|
|
|
|
public class LibrarySettings : PointerWrapper
|
|
|
|
{
|
2020-07-31 12:19:21 +00:00
|
|
|
public byte MaximalLevel => Creaturelib.Generated.LibrarySettings.GetMaximalLevel(Ptr);
|
|
|
|
public byte MaximalMoves => Creaturelib.Generated.LibrarySettings.GetMaximalMoves(Ptr);
|
2020-05-04 16:17:26 +00:00
|
|
|
public ushort ShinyRate => Pkmnlib.Generated.LibrarySettings.GetShinyRate(Ptr);
|
2020-08-08 13:24:14 +00:00
|
|
|
|
2020-05-19 12:25:21 +00:00
|
|
|
internal LibrarySettings(IntPtr ptr) : base(ptr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-05-04 16:17:26 +00:00
|
|
|
public LibrarySettings(byte maximalLevel, byte maximalMoves, ushort shinyRate) : base(
|
|
|
|
Pkmnlib.Generated.LibrarySettings.Construct(maximalLevel, maximalMoves, shinyRate))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void DeletePtr()
|
|
|
|
{
|
|
|
|
Pkmnlib.Generated.LibrarySettings.Destruct(Ptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|