mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 15:59:13 +00:00
6d8ff992e2
* stash * Consolidate some logic
16 lines
No EOL
519 B
C#
16 lines
No EOL
519 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Tuple containing data for a <see cref="Slot"/> and the originating <see cref="View"/>
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
public class SlotViewInfo<T>
|
|
{
|
|
public ISlotInfo Slot;
|
|
public ISlotViewer<T> View;
|
|
|
|
public PKM ReadCurrent() => Slot.Read(View.SAV);
|
|
public bool CanWriteTo() => Slot.CanWriteTo(View.SAV);
|
|
public WriteBlockedMessage CanWriteTo(PKM pkm) => Slot.CanWriteTo(View.SAV, pkm);
|
|
}
|
|
} |