PKHeX/PKHeX.Core/Legality/Encounters/EncounterInvalid.cs
Kurt 1486b7f14a Misc style & minor tweaks
Remove move combobox flicker hack (no longer necessary)
Add more Array.Empty usages
cache mysterygift sizes
seal some classes

no functionality changes
2018-08-02 20:11:42 -07:00

27 lines
723 B
C#

using System;
namespace PKHeX.Core
{
/// <summary>
/// Invalid Encounter Data
/// </summary>
public class EncounterInvalid : IEncounterable
{
public int Species { get; }
public int LevelMin { get; }
public int LevelMax { get; }
public bool EggEncounter { get; }
public string Name => "Invalid";
public EncounterInvalid(PKM pkm)
{
Species = pkm.Species;
LevelMin = pkm.Met_Level;
LevelMax = pkm.CurrentLevel;
EggEncounter = pkm.WasEgg;
}
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new ArgumentException($"Cannot convert an {nameof(EncounterInvalid)} to PKM.");
}
}