2022-11-25 01:42:17 +00:00
|
|
|
namespace PKHeX.Core;
|
2022-06-18 18:04:24 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Exposes memory details for the Original Trainer.
|
|
|
|
/// </summary>
|
2022-11-25 01:42:17 +00:00
|
|
|
public interface IMemoryOT : IMemoryOTReadOnly
|
2022-06-18 18:04:24 +00:00
|
|
|
{
|
2022-11-25 01:42:17 +00:00
|
|
|
new byte OT_Memory { get; set; }
|
|
|
|
new byte OT_Intensity { get; set; }
|
|
|
|
new byte OT_Feeling { get; set; }
|
|
|
|
new ushort OT_TextVar { get; set; }
|
2022-06-18 18:04:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|