mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
dcc0e79435
Like move validation, evolutions are the earliest thing we wish to traverse when determining what encounters may have originated the current Pokémon. To determine the permitted species-form-levels a Pokémon could originate with, we must devolve a Pokémon by traveling down-generation to origin. Once we have an encounter, we can then evolve it to the current species, traversing upwards from origin to the current format.
9 lines
332 B
C#
9 lines
332 B
C#
namespace PKHeX.Core;
|
|
|
|
/// <summary>
|
|
/// Links a <see cref="EvolutionMethod"/> to the source <see cref="Species"/> and <see cref="Form"/> that the method can be triggered from.
|
|
/// </summary>
|
|
public readonly record struct EvolutionLink(EvolutionMethod Method, ushort Species, byte Form)
|
|
{
|
|
public bool IsEmpty => Species == 0;
|
|
}
|