mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +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;
|
|
}
|
|
}
|