2019-09-03 02:30:58 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2019-01-13 04:53:50 +00:00
|
|
|
namespace PKHeX.Core
|
|
|
|
{
|
2019-09-03 02:30:58 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Slot Viewer that shows many slots of <see cref="PKM"/> data.
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="T">Object that displays the <see cref="PKM"/> slot.</typeparam>
|
|
|
|
public interface ISlotViewer<T>
|
2019-01-13 04:53:50 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Current index the viewer is viewing.
|
|
|
|
/// </summary>
|
|
|
|
int ViewIndex { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Notification that the <see cref="previous"/> slot is no longer the last interacted slot.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="previous">Last interacted slot</param>
|
2019-09-03 02:30:58 +00:00
|
|
|
void NotifySlotOld(ISlotInfo previous);
|
2019-01-13 04:53:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Notification that the <see cref="slot"/> has just been interacted with.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="slot">Last interacted slot</param>
|
|
|
|
/// <param name="type">Last interacted slot interaction type</param>
|
2019-09-03 02:30:58 +00:00
|
|
|
/// <param name="pkm">Last interacted slot interaction data</param>
|
|
|
|
void NotifySlotChanged(ISlotInfo slot, SlotTouchType type, PKM pkm);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the information for the requested slot's view picture.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="view"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
ISlotInfo GetSlotData(T view);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the index of the <see cref="T"/> view within the <see cref="ISlotViewer{T}"/>'s list of slots.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="slot"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
int GetViewIndex(ISlotInfo slot);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// List of <see cref="T"/> views the <see cref="ISlotViewer{T}"/> is showing.
|
|
|
|
/// </summary>
|
|
|
|
IList<T> SlotPictureBoxes { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Save data the <see cref="ISlotViewer{T}"/> is showing data from.
|
|
|
|
/// </summary>
|
|
|
|
SaveFile SAV { get; }
|
2019-01-13 04:53:50 +00:00
|
|
|
}
|
|
|
|
}
|