mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-23 19:03:11 +00:00
80d1712b72
Fix shuffled comments for FormInfo Remove unnecessary Reset on ctor, all fields are already the default
26 lines
No EOL
862 B
C#
26 lines
No EOL
862 B
C#
using PKHeX.Core;
|
|
|
|
namespace PKHeX.WinForms.Controls
|
|
{
|
|
public sealed class SlotChangeInfo<TCursor, TImageSource> where TCursor : class
|
|
{
|
|
public bool LeftMouseIsDown { get; set; }
|
|
public bool DragDropInProgress { get; set; }
|
|
|
|
public TCursor? Cursor { get; set; }
|
|
public string? CurrentPath { get; set; }
|
|
|
|
public SlotViewInfo<TImageSource>? Source { get; set; }
|
|
public SlotViewInfo<TImageSource>? Destination { get; set; }
|
|
|
|
public void Reset()
|
|
{
|
|
LeftMouseIsDown = DragDropInProgress = false;
|
|
CurrentPath = null;
|
|
Cursor = default;
|
|
}
|
|
|
|
public bool SameLocation => (Destination != null) && (Source?.Equals(Destination) ?? false);
|
|
public bool DragIsParty => Source?.Slot is SlotInfoParty || Destination?.Slot is SlotInfoParty;
|
|
}
|
|
} |