2021-12-26 08:57:40 +00:00
|
|
|
|
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
|
2016-11-08 16:43:57 +00:00
|
|
|
|
{
|
2017-11-07 06:44:51 +00:00
|
|
|
|
/// <summary>
|
2021-12-26 08:57:40 +00:00
|
|
|
|
/// Maximum Level
|
2017-11-07 06:44:51 +00:00
|
|
|
|
/// </summary>
|
2021-12-26 08:57:40 +00:00
|
|
|
|
public int Level { get; set; }
|
2020-07-19 18:32:40 +00:00
|
|
|
|
|
2021-12-26 08:57:40 +00:00
|
|
|
|
public override string ToString() => $"{(Species)Species}{(Form == 0 ? "" : $"-{Form}")} [{Level}]";
|
|
|
|
|
}
|