PKHeX/PKHeX.Core/Legality/Structures/MoveSource.cs
Kurt 69fafcab83 Performance: Slightly reduce allocations in moveset validation (#3460)
* Reuses move parse result objects for each encounter parsed in a LegalityCheck attempt, instead of creating a new object.
* Ensures the objects are never-null, and makes cleanup easier.

Slightly adjusts some other parts of the moveset validation to reduce allocations.
2022-03-12 17:39:00 -08:00

24 lines
420 B
C#

namespace PKHeX.Core
{
/// <summary>
/// Indicates the method of learning a move
/// </summary>
public enum MoveSource : byte
{
NotParsed,
Unknown,
None,
Relearn,
Initial,
LevelUp,
TMHM,
Tutor,
EggMove,
InheritLevelUp,
Special,
SpecialEgg,
ShedinjaEvo,
Sketch,
Shared,
}
}