mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 21:13:05 +00:00
78ff441e8b
rearrange some logic for clearer function (extract some methods)
19 lines
No EOL
732 B
C#
19 lines
No EOL
732 B
C#
namespace PKHeX.Core
|
|
{
|
|
public sealed class EncounterSlotPermissions
|
|
{
|
|
public int StaticIndex { get; set; } = -1;
|
|
public int MagnetPullIndex { get; set; } = -1;
|
|
public int StaticCount { get; set; }
|
|
public int MagnetPullCount { get; set; }
|
|
|
|
public bool AllowDexNav { get; set; }
|
|
public bool Pressure { get; set; }
|
|
public bool DexNav { get; set; }
|
|
public bool WhiteFlute { get; set; }
|
|
public bool BlackFlute { get; set; }
|
|
public bool IsNormalLead => !(WhiteFlute || BlackFlute || DexNav);
|
|
public bool IsDexNav => AllowDexNav && DexNav;
|
|
public EncounterSlotPermissions Clone() => (EncounterSlotPermissions)MemberwiseClone();
|
|
}
|
|
} |