mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-22 02:13:10 +00:00
8d8adde2b1
sealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealed
16 lines
No EOL
526 B
C#
16 lines
No EOL
526 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 sealed 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);
|
|
}
|
|
} |