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
|
|
|
|
|
{
|
2020-08-01 00:25:14 +00:00
|
|
|
|
int OT_Memory { get; set; }
|
|
|
|
|
int OT_Intensity { get; set; }
|
|
|
|
|
int OT_Feeling { get; set; }
|
|
|
|
|
int 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
|
|
|
|
{
|
2020-08-02 22:51:22 +00:00
|
|
|
|
ot.OT_Memory = ot.OT_Feeling = ot.OT_Intensity = ot.OT_TextVar = 0;
|
2020-08-01 00:25:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|