mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Closes #4133 Refactors most of the `Trade` methods Fix default egg friendship to 120 Fix Version value exposed for Gen4 saves (and others)
20 lines
632 B
C#
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);
|
|
}
|