2017-05-23 04:55:05 +00:00
|
|
|
|
using PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.WinForms
|
|
|
|
|
{
|
|
|
|
|
public class SlotChange
|
|
|
|
|
{
|
2017-06-18 20:02:02 +00:00
|
|
|
|
/// <summary> Parent of the object that initiated the slot change. </summary>
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public object Parent { get; set; }
|
2017-05-23 04:55:05 +00:00
|
|
|
|
|
2017-06-18 20:02:02 +00:00
|
|
|
|
/// <summary> Original Data of the slot. </summary>
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public byte[] OriginalData { get; set; }
|
2017-06-18 20:02:02 +00:00
|
|
|
|
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public int Offset { get; set; } = -1;
|
|
|
|
|
public int Slot { get; set; } = -1;
|
|
|
|
|
public int Box { get; set; } = -1;
|
|
|
|
|
public PKM PKM { get; set; }
|
2017-05-23 04:55:05 +00:00
|
|
|
|
|
|
|
|
|
public bool IsParty => 30 <= Slot && Slot < 36;
|
|
|
|
|
public bool IsValid => Slot > -1 && (Box > -1 || IsParty);
|
|
|
|
|
}
|
|
|
|
|
}
|