mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-19 00:43:14 +00:00
18 lines
600 B
C#
18 lines
600 B
C#
|
namespace PKHeX.Core
|
|||
|
{
|
|||
|
public interface IMagnetStatic
|
|||
|
{
|
|||
|
int StaticIndex { get; set; }
|
|||
|
int MagnetPullIndex { get; set; }
|
|||
|
|
|||
|
int StaticCount { get; set; }
|
|||
|
int MagnetPullCount { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public static class MagnetStaticExtensions
|
|||
|
{
|
|||
|
public static bool IsMatchStatic(this IMagnetStatic slot, int index, int count) => index == slot.StaticIndex && count == slot.StaticCount;
|
|||
|
public static bool IsMatchMagnet(this IMagnetStatic slot, int index, int count) => index == slot.MagnetPullIndex && count == slot.MagnetPullCount;
|
|||
|
}
|
|||
|
}
|