2019-11-22 05:44:41 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <see cref="EncounterStatic8"/> with multiple references (used for multiple met locations)
|
|
|
|
|
/// </summary>
|
2020-11-27 19:51:02 +00:00
|
|
|
|
/// <inheritdoc cref="EncounterStatic"/>
|
2019-11-22 05:44:41 +00:00
|
|
|
|
public sealed class EncounterStatic8S : EncounterStatic8
|
|
|
|
|
{
|
2020-12-22 01:05:05 +00:00
|
|
|
|
public override int Location { get => Locations[0]; init { } }
|
|
|
|
|
public IReadOnlyList<int> Locations { get; init; } = Array.Empty<int>();
|
2019-11-22 05:44:41 +00:00
|
|
|
|
protected override bool IsMatchLocation(PKM pkm) => Locations.Contains(pkm.Met_Location);
|
|
|
|
|
}
|
|
|
|
|
}
|