mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-24 19:33:10 +00:00
5b4cedf14b
Rewrote showdown set exporting to be much clearer, added auto-fixing of relearn moves when importing showdown set (applies suggested relearn moves) Simplified main form loading routine (from ~160 to ~25 by extracting methods)
21 lines
625 B
C#
21 lines
625 B
C#
using PKHeX.Core;
|
|
|
|
namespace PKHeX.WinForms
|
|
{
|
|
public class SlotChange
|
|
{
|
|
/// <summary> Parent of the object that initiated the slot change. </summary>
|
|
public object Parent { get; set; }
|
|
|
|
/// <summary> Original Data of the slot. </summary>
|
|
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);
|
|
}
|
|
}
|