PKHeX/PKHeX.Core/Legality/Moves/Breeding/BreedInfo.cs
2023-07-06 19:41:27 -07:00

34 lines
1 KiB
C#

using System;
namespace PKHeX.Core;
/// <summary>
/// Value passing object to simplify some initialization.
/// </summary>
/// <typeparam name="T">Egg Move source type enumeration.</typeparam>
internal readonly ref struct BreedInfo<T> where T : unmanaged
{
/// <summary> Indicates the analyzed source of each move. </summary>
public readonly Span<T> Actual;
/// <summary> Indicates all possible sources of each move. </summary>
public readonly Span<byte> Possible;
/// <summary> Level Up entry for the egg. </summary>
public readonly Learnset Learnset;
/// <summary> Moves the egg knows after it is finalized. </summary>
public readonly ReadOnlySpan<ushort> Moves;
/// <summary> Level the egg originated at. </summary>
public readonly byte Level;
public BreedInfo(Span<T> actual, Span<byte> possible, Learnset learnset, ReadOnlySpan<ushort> moves, byte level)
{
Actual = actual;
Possible = possible;
Learnset = learnset;
Moves = moves;
Level = level;
}
}