mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-23 06:06:22 -05:00
Adds support for Scarlet & Violet. Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com> Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com> Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
26 lines
565 B
C#
26 lines
565 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
public sealed record LocationSet0(string[] Met0) : ILocationSet
|
|
{
|
|
public ReadOnlySpan<string> GetLocationNames(int bankID) => bankID switch
|
|
{
|
|
0 => Met0,
|
|
_ => Array.Empty<string>(),
|
|
};
|
|
|
|
public string GetLocationName(int locationID)
|
|
{
|
|
if ((uint)locationID >= Met0.Length)
|
|
return string.Empty;
|
|
return Met0[locationID];
|
|
}
|
|
|
|
public IEnumerable<(int Bank, string[] Names)> GetAll()
|
|
{
|
|
yield return (0, Met0);
|
|
}
|
|
}
|