2018-01-30 01:52:21 +00:00
|
|
|
|
namespace PKHeX.Core
|
2017-05-23 04:55:05 +00:00
|
|
|
|
{
|
|
|
|
|
public class SlotChangeInfo
|
|
|
|
|
{
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public bool LeftMouseIsDown { get; set; }
|
|
|
|
|
public bool RightMouseIsDown { get; set; }
|
|
|
|
|
public bool DragDropInProgress { get; set; }
|
2017-05-23 04:55:05 +00:00
|
|
|
|
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public object Cursor { get; set; }
|
|
|
|
|
public string CurrentPath { get; set; }
|
2017-05-23 04:55:05 +00:00
|
|
|
|
|
2018-05-05 15:07:22 +00:00
|
|
|
|
public SlotChange Source { get; set; }
|
|
|
|
|
public SlotChange Destination { get; set; }
|
2017-05-23 04:55:05 +00:00
|
|
|
|
|
2017-06-18 01:37:19 +00:00
|
|
|
|
private readonly byte[] BlankData;
|
2017-05-23 04:55:05 +00:00
|
|
|
|
|
|
|
|
|
public SlotChangeInfo(SaveFile sav)
|
|
|
|
|
{
|
|
|
|
|
BlankData = sav.BlankPKM.EncryptedPartyData;
|
|
|
|
|
Reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool SameSlot => Source.Slot == Destination.Slot && Source.Box == Destination.Box;
|
|
|
|
|
public void Reset()
|
|
|
|
|
{
|
|
|
|
|
LeftMouseIsDown = RightMouseIsDown = DragDropInProgress = false;
|
2018-01-30 01:52:21 +00:00
|
|
|
|
Source = new SlotChange { OriginalData = BlankData };
|
2017-05-23 04:55:05 +00:00
|
|
|
|
Destination = new SlotChange();
|
|
|
|
|
Cursor = CurrentPath = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|