2017-09-04 02:51:29 +00:00
|
|
|
namespace PKHeX.Core
|
|
|
|
{
|
2017-10-24 06:12:58 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Rejected Encounter Data containing a reason why the encounter was rejected (not compatible).
|
|
|
|
/// </summary>
|
2017-09-04 02:51:29 +00:00
|
|
|
public class EncounterRejected : IEncounterable
|
|
|
|
{
|
|
|
|
public readonly IEncounterable Encounter;
|
|
|
|
public readonly CheckResult Check;
|
|
|
|
public string Reason => Check.Comment;
|
|
|
|
|
|
|
|
public int Species => Encounter.Species;
|
|
|
|
public string Name => Encounter.Name;
|
|
|
|
public bool EggEncounter => Encounter.EggEncounter;
|
|
|
|
public int LevelMin => Encounter.LevelMin;
|
|
|
|
public int LevelMax => Encounter.LevelMax;
|
|
|
|
|
|
|
|
public EncounterRejected(IEncounterable encounter, CheckResult check)
|
|
|
|
{
|
|
|
|
Encounter = encounter;
|
|
|
|
Check = check;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|