PKHeX/PKHeX.Core/Legality/Structures/IGeneration.cs
2018-11-10 21:07:31 -08:00

15 lines
370 B
C#

namespace PKHeX.Core
{
/// <summary>
/// Interface that exposes a Generation value for the object.
/// </summary>
public interface IGeneration
{
int Generation { get; set; }
}
public static partial class Extensions
{
internal static PKM GetBlank(this IGeneration gen) => PKMConverter.GetBlank(gen.Generation);
}
}