PKHeX/PKHeX.Core/PKM/Interfaces/IHandlerUpdate.cs
Kurt 034658b764 Remove extra Memory forcing
Closes #4133
Refactors most of the `Trade` methods
Fix default egg friendship to 120
Fix Version value exposed for Gen4 saves (and others)
2024-02-23 17:01:36 -06:00

20 lines
632 B
C#

namespace PKHeX.Core;
/// <summary>
/// Interface exposing a method to adapt the entity to the Handling Trainer.
/// </summary>
public interface IHandlerUpdate
{
/// <summary>
/// Indicates if the entity belongs to the <see cref="ITrainerInfo"/>.
/// </summary>
/// <param name="tr">Trainer to check if it originally possessed the entity.</param>
bool BelongsTo(ITrainerInfo tr);
/// <summary>
/// Updates the entity to match the <see cref="ITrainerInfo"/>.
/// </summary>
/// <param name="tr">Trainer that is now in possession of the entity.</param>
void UpdateHandler(ITrainerInfo tr);
}