mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 15:59:13 +00:00
19 lines
669 B
C#
19 lines
669 B
C#
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>
|
|
/// <inheritdoc cref="EncounterStatic"/>
|
|
public sealed record EncounterStatic8S : EncounterStatic8
|
|
{
|
|
public override int Location { get => Locations[0]; init { } }
|
|
public IReadOnlyList<int> Locations { get; init; } = Array.Empty<int>();
|
|
protected override bool IsMatchLocation(PKM pkm) => Locations.Contains(pkm.Met_Location);
|
|
|
|
public EncounterStatic8S(GameVersion game) : base(game) { }
|
|
}
|
|
}
|