PKHeX/PKHeX.Core/Game/GameStrings/LocationSet/ILocationSet.cs
Kurt 03182ebd3d Update 22.11.24
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>
2022-11-24 17:42:17 -08:00

28 lines
725 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace PKHeX.Core;
/// <summary>
/// Stores location names for a given game group.
/// </summary>
public interface ILocationSet
{
/// <summary>
/// Gets the location name group for the requested location bank group ID.
/// </summary>
ReadOnlySpan<string> GetLocationNames(int bankID);
/// <summary>
/// Gets the location name for the requested location ID.
/// </summary>
string GetLocationName(int locationID);
/// <summary>
/// Gets all groups -- ONLY USE FOR UNIT TESTING.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
IEnumerable<(int Bank, string[] Names)> GetAll();
}