2019-11-22 05:44:41 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <see cref="EncounterStatic8"/> with multiple references (used for multiple met locations)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <inheritdoc cref="EncounterStatic"/>
|
|
|
|
|
public sealed record EncounterStatic8S(GameVersion Version) : EncounterStatic8(Version)
|
2019-11-22 05:44:41 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
public override int Location { get => Locations[0]; init { } }
|
|
|
|
|
public IReadOnlyList<int> Locations { get; init; } = Array.Empty<int>();
|
|
|
|
|
protected override bool IsMatchLocation(PKM pk) => Locations.Contains(pk.Met_Location);
|
2021-01-04 00:49:49 +00:00
|
|
|
|
}
|