PKHeX/PKHeX.Core/Saves/Substructures/Gen3/SecretBase3PKM.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

31 lines
984 B
C#

using System;
using System.Linq;
namespace PKHeX.Core;
public sealed class SecretBase3PKM
{
public uint PID { get; set; }
public int Move1 { get; set; }
public int Move2 { get; set; }
public int Move3 { get; set; }
public int Move4 { get; set; }
public int Species { get; set; }
public int HeldItem { get; set; }
public int Level { get; set; }
public int EVAll { get; set; }
public int[] Moves => new[] { Move1, Move2, Move3, Move4 };
public string Summary
{
get
{
var first = $"{Species:000} - {GameInfo.Strings.Species[Species]}";
if (HeldItem != 0)
first += $"@ {GameInfo.Strings.Item[HeldItem]}";
var second = $"Moves: {string.Join(" / ", Moves.Select(z => GameInfo.Strings.Move[z]))}";
var third = $"Level: {Level}, EVs: {EVAll}, PID: {PID}";
return first + Environment.NewLine + second + Environment.NewLine + third;
}
}
}