using System; namespace PKHeX.Core { /// /// Invalid Encounter Data /// 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."); } }