mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
/// <summary>
|
|
/// Exposes info about the Technical Record (TR) compatibility and history of use in Sword/Shield.
|
|
/// </summary>
|
|
public interface ITechRecord8
|
|
{
|
|
/// <summary>
|
|
/// Individual accessed indexes indicate if they can be learned.
|
|
/// </summary>
|
|
ReadOnlySpan<bool> TechRecordPermitFlags { get; }
|
|
|
|
/// <summary>
|
|
/// Individual accessed move IDs that a given TR teaches.
|
|
/// </summary>
|
|
ReadOnlySpan<int> TechRecordPermitIndexes { get; }
|
|
|
|
/// <summary>
|
|
/// Indicates if the TR has been previously used on this entity to learn the move.
|
|
/// </summary>
|
|
/// <param name="index">TR index</param>
|
|
/// <returns>True if learned</returns>
|
|
bool GetMoveRecordFlag(int index);
|
|
|
|
/// <summary>
|
|
/// Sets the flag indicating that the TR has been learned.
|
|
/// </summary>
|
|
/// <param name="index">TR index</param>
|
|
/// <param name="value">True if learned</param>
|
|
void SetMoveRecordFlag(int index, bool value = true);
|
|
|
|
/// <summary>
|
|
/// Indicates if any move has been learned via TR.
|
|
/// </summary>
|
|
bool GetMoveRecordFlagAny();
|
|
}
|