mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-21 13:26:42 -05:00
16 lines
519 B
C#
16 lines
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);
|
|
}
|
|
} |