mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-25 20:03:12 +00:00
ccf87242c1
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.
14 lines
393 B
C#
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);
|
|
}
|
|
}
|