PKHeX/PKHeX.WinForms/Controls/SAV Editor/SlotChange.cs
Kurt 3f38b123a3 Refactoring
mostly renaming things, includes a little bit of added sugar and
splitting methods to simplify the codebase.

all methods are now PascalCase
2017-06-17 18:37:19 -07:00

18 lines
478 B
C#

using PKHeX.Core;
namespace PKHeX.WinForms
{
public class SlotChange
{
public object Parent { get; set; }
public byte[] OriginalData { get; set; }
public int Offset { get; set; } = -1;
public int Slot { get; set; } = -1;
public int Box { get; set; } = -1;
public PKM PKM { get; set; }
public bool IsParty => 30 <= Slot && Slot < 36;
public bool IsValid => Slot > -1 && (Box > -1 || IsParty);
}
}