mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-30 06:13:11 +00:00
fc754b346b
[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`
34 lines
1 KiB
C#
34 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
internal sealed class MoveParseSource
|
|
{
|
|
private static readonly int[] Empty = Array.Empty<int>();
|
|
public IReadOnlyList<int> CurrentMoves { get; init; } = Empty;
|
|
public IReadOnlyList<int> SpecialSource { get; set; } = Empty;
|
|
public int[] NonTradeBackLevelUpMoves { get; set; } = Empty;
|
|
|
|
/// <summary>
|
|
/// Base moves from a standard encounter
|
|
/// </summary>
|
|
public int[] Base { get; set; } = Empty;
|
|
|
|
public int[] EggLevelUpSource { get; set; } = Empty;
|
|
public int[] EggMoveSource { get; set; } = Empty;
|
|
public IReadOnlyList<int> EggEventSource { get; set; } = Empty;
|
|
|
|
/// <summary>
|
|
/// Clears all sources except for the <see cref="CurrentMoves"/>.
|
|
/// </summary>
|
|
public void ResetSources()
|
|
{
|
|
EggEventSource = Empty;
|
|
Base = Empty;
|
|
EggLevelUpSource = Empty;
|
|
EggMoveSource = Empty;
|
|
NonTradeBackLevelUpMoves = Empty;
|
|
SpecialSource = Empty;
|
|
}
|
|
}
|