mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
e1414a0bea
No code changes
24 lines
620 B
C#
24 lines
620 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Exposes memory details for the Original Trainer.
|
|
/// </summary>
|
|
public interface IMemoryOT
|
|
{
|
|
byte OT_Memory { get; set; }
|
|
byte OT_Intensity { get; set; }
|
|
byte OT_Feeling { get; set; }
|
|
ushort OT_TextVar { get; set; }
|
|
}
|
|
|
|
public static partial class Extensions
|
|
{
|
|
/// <summary>
|
|
/// Sets all values to zero.
|
|
/// </summary>
|
|
public static void ClearMemoriesOT(this IMemoryOT ot)
|
|
{
|
|
ot.OT_TextVar = ot.OT_Memory = ot.OT_Feeling = ot.OT_Intensity = 0;
|
|
}
|
|
}
|
|
}
|