mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
3f38b123a3
mostly renaming things, includes a little bit of added sugar and splitting methods to simplify the codebase. all methods are now PascalCase
34 lines
1,017 B
C#
34 lines
1,017 B
C#
using PKHeX.Core;
|
|
|
|
namespace PKHeX.WinForms
|
|
{
|
|
public class SlotChangeInfo
|
|
{
|
|
public bool LeftMouseIsDown { get; set; }
|
|
public bool RightMouseIsDown { get; set; }
|
|
public bool DragDropInProgress { get; set; }
|
|
|
|
public object Cursor { get; set; }
|
|
public string CurrentPath { get; set; }
|
|
|
|
public SlotChange Source { get; private set; }
|
|
public SlotChange Destination { get; private set; }
|
|
|
|
private readonly byte[] BlankData;
|
|
|
|
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;
|
|
Source = new SlotChange {OriginalData = BlankData};
|
|
Destination = new SlotChange();
|
|
Cursor = CurrentPath = null;
|
|
}
|
|
}
|
|
}
|