2019-11-26 18:46:16 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2020-08-02 22:51:22 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Exposes memory details for the Original Trainer.
|
|
|
|
|
/// </summary>
|
2019-11-26 18:46:16 +00:00
|
|
|
|
public interface IMemoryOT
|
|
|
|
|
{
|
2022-03-06 20:01:47 +00:00
|
|
|
|
byte OT_Memory { get; set; }
|
|
|
|
|
byte OT_Intensity { get; set; }
|
|
|
|
|
byte OT_Feeling { get; set; }
|
|
|
|
|
ushort OT_TextVar { get; set; }
|
2019-11-26 18:46:16 +00:00
|
|
|
|
}
|
2020-08-01 00:25:14 +00:00
|
|
|
|
|
|
|
|
|
public static partial class Extensions
|
|
|
|
|
{
|
2020-08-02 22:51:22 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sets all values to zero.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static void ClearMemoriesOT(this IMemoryOT ot)
|
2020-08-01 00:25:14 +00:00
|
|
|
|
{
|
2022-03-06 20:01:47 +00:00
|
|
|
|
ot.OT_TextVar = ot.OT_Memory = ot.OT_Feeling = ot.OT_Intensity = 0;
|
2020-08-01 00:25:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|