mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-12 13:42:36 +00:00
17 lines
600 B
C#
17 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;
|
|
}
|
|
}
|