PKHeX/PKHeX.Core/Legality/Moves/Breeding/BreedInfo.cs
Kurt fc754b346b
File scoped namespaces (#3529)
[Language Reference](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/file-scoped-namespaces)

Updates all the files, one less level of indentation.

Some small changes were made to API surfaces, renaming `PKM pkm` -> `PKM pk`, and `LegalityAnalysis.pkm` -> `LegalityAnalysis.Entity`
2022-06-18 11:04:24 -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 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<int> Moves;
/// <summary> Level the egg originated at. </summary>
public readonly int Level;
public BreedInfo(T[] actual, Span<byte> possible, Learnset learnset, ReadOnlySpan<int> moves, int level)
{
Actual = actual;
Possible = possible;
Learnset = learnset;
Moves = moves;
Level = level;
}
}