PKHeX/PKHeX.Core/Legality/Encounters/EncounterTrade/EncounterTradeGB.cs
Kurt ccf87242c1 Eliminate boxing on encounter search (criteria)
struct implementing interface is boxed when passed to method that accepts interface (not generic method).
Removes IDexLevel (no other inheritors but EvoCriteria) and uses the primitive the data is stored (array, not IReadOnlyList) for slightly better perf.
2022-05-07 18:29:36 -07:00

14 lines
393 B
C#

namespace PKHeX.Core
{
/// <inheritdoc cref="EncounterTrade"/>
public abstract record EncounterTradeGB : EncounterTrade
{
protected EncounterTradeGB(int species, byte level, GameVersion game) : base(game)
{
Species = species;
Level = level;
}
public abstract override bool IsMatchExact(PKM pkm, EvoCriteria evo);
}
}