2022-06-18 18:04:24 +00:00
|
|
|
|
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
|
2019-11-26 18:46:16 +00:00
|
|
|
|
{
|
2020-08-02 22:51:22 +00:00
|
|
|
|
/// <summary>
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// Sets all values to zero.
|
2020-08-02 22:51:22 +00:00
|
|
|
|
/// </summary>
|
2022-06-18 18:04:24 +00:00
|
|
|
|
public static void ClearMemoriesOT(this IMemoryOT ot)
|
2020-08-01 00:25:14 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
ot.OT_TextVar = ot.OT_Memory = ot.OT_Feeling = ot.OT_Intensity = 0;
|
2020-08-01 00:25:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|