mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 09:08:02 +00:00
e472bfe278
move slotchange to core
18 lines
No EOL
575 B
C#
18 lines
No EOL
575 B
C#
namespace PKHeX.Core
|
|
{
|
|
public class SlotChange : StorageSlotOffset
|
|
{
|
|
/// <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 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);
|
|
}
|
|
} |