mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-11 21:22:41 +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`
19 lines
889 B
C#
19 lines
889 B
C#
namespace PKHeX.Core;
|
|
|
|
/// <summary>
|
|
/// Exposes conversion methods to create a <see cref="PKM"/> from the object's data.
|
|
/// </summary>
|
|
public interface IEncounterConvertible
|
|
{
|
|
/// <summary>
|
|
/// Creates a <see cref="PKM"/> from the template, using the input <see cref="tr"/> as the trainer data.
|
|
/// </summary>
|
|
/// <remarks>This method calls <see cref="ConvertToPKM(ITrainerInfo, EncounterCriteria)"/> with a fixed criteria containing no restrictions on the generated data.</remarks>
|
|
PKM ConvertToPKM(ITrainerInfo tr);
|
|
|
|
/// <summary>
|
|
/// Creates a <see cref="PKM"/> from the template, using the input <see cref="tr"/> as the trainer data.
|
|
/// <br>The generation routine will try to yield a result that matches the specifications in the <see cref="criteria"/>.</br>
|
|
/// </summary>
|
|
PKM ConvertToPKM(ITrainerInfo tr, EncounterCriteria criteria);
|
|
}
|