PKHeX/PKHeX.WinForms/Controls/SAV Editor/SlotChange.cs
Kurt 11b2dc35d7 Refactor main form into smaller pieces
pkm editor, sav editor, menus, and a manager to glue the storage slots
together
decouples the pkm/sav editors from a static savefile reference.

improves dragdrop/click view/set/delete indication, hides unavailable
contextmenuitems, and fixes a few incorrect references. Box Subviewer
slots now have all the indication/events that the main save editor slots
have.

pls report behavior bugs 👍
2017-05-22 21:55:12 -07:00

18 lines
397 B
C#

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