PKHeX/PKHeX.Core/Legality/Evolutions/DexLevel.cs

15 lines
420 B
C#
Raw Normal View History

namespace PKHeX.Core;
/// <summary>
/// Small general purpose value passing object with misc data pertaining to an encountered Species.
/// </summary>
public record DexLevel(int Species, int Form) : ISpeciesForm
{
2017-11-07 06:44:51 +00:00
/// <summary>
/// Maximum Level
2017-11-07 06:44:51 +00:00
/// </summary>
public int Level { get; set; }
public override string ToString() => $"{(Species)Species}{(Form == 0 ? "" : $"-{Form}")} [{Level}]";
}