2022-06-18 18:04:24 +00:00
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides access for reading and writing ribbon states by ribbon index within the <see cref="PKM"/> structure.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IRibbonIndex
|
2019-11-16 01:34:18 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// <summary>Gets the state of the ribbon at the requested ribbon index.</summary>
|
|
|
|
|
/// <param name="index"><see cref="RibbonIndex"/></param>
|
|
|
|
|
bool GetRibbon(int index);
|
2021-03-24 04:20:02 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// <summary>Sets the ribbon index to the provided state.</summary>
|
|
|
|
|
/// <param name="index"><see cref="RibbonIndex"/></param>
|
|
|
|
|
/// <param name="value">value to set</param>
|
|
|
|
|
void SetRibbon(int index, bool value = true);
|
2021-03-24 04:20:02 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the value of the byte that has the ribbon <see cref="index"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="index"><see cref="RibbonIndex"/></param>
|
|
|
|
|
int GetRibbonByte(int index);
|
2019-11-16 01:34:18 +00:00
|
|
|
|
}
|