2021-04-05 01:30:01 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Value passing object to simplify some initialization.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T">Egg Move source type enumeration.</typeparam>
|
2022-03-13 01:06:03 +00:00
|
|
|
|
internal readonly ref struct BreedInfo<T> where T : unmanaged
|
2021-04-05 01:30:01 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary> Indicates the analyzed source of each move. </summary>
|
|
|
|
|
public readonly T[] Actual;
|
|
|
|
|
|
|
|
|
|
/// <summary> Indicates all possible sources of each move. </summary>
|
2022-03-06 21:04:56 +00:00
|
|
|
|
public readonly Span<byte> Possible;
|
2021-04-05 01:30:01 +00:00
|
|
|
|
|
|
|
|
|
/// <summary> Level Up entry for the egg. </summary>
|
|
|
|
|
public readonly Learnset Learnset;
|
|
|
|
|
|
|
|
|
|
/// <summary> Moves the egg knows after it is finalized. </summary>
|
2022-03-06 21:04:56 +00:00
|
|
|
|
public readonly ReadOnlySpan<int> Moves;
|
2021-04-05 01:30:01 +00:00
|
|
|
|
|
|
|
|
|
/// <summary> Level the egg originated at. </summary>
|
|
|
|
|
public readonly int Level;
|
|
|
|
|
|
2022-03-06 21:04:56 +00:00
|
|
|
|
public BreedInfo(T[] actual, Span<byte> possible, Learnset learnset, ReadOnlySpan<int> moves, int level)
|
2021-04-05 01:30:01 +00:00
|
|
|
|
{
|
2022-03-06 21:04:56 +00:00
|
|
|
|
Actual = actual;
|
|
|
|
|
Possible = possible;
|
2021-04-05 01:30:01 +00:00
|
|
|
|
Learnset = learnset;
|
|
|
|
|
Moves = moves;
|
|
|
|
|
Level = level;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|