PKHeX/PKHeX.Core/PKM/HOME/IHomeStorage.cs
Kurt 1174e354b1
Initial support for Pokémon HOME 3.0.0 (#3899)
* Heavily rewrites the `PKH` abstractions.
* Uses HOME's core-side classes as the transfer middlemen instead of direct A->B transfers.
* Revises logic to account for most of HOME's quirks (scale/height copying, safe refuge PLA)

Future revisions hinge on better handling of evotree (need better metadata about existing as specific evolutions in each game).

---------

Co-authored-by: sora10pls <17801814+sora10pls@users.noreply.github.com>
Co-authored-by: Lusamine <30205550+Lusamine@users.noreply.github.com>
2023-06-03 18:19:16 -07:00

13 lines
312 B
C#

namespace PKHeX.Core;
public interface IHomeStorage
{
bool Exists(ulong tracker);
PKH GetEntity<T>(T pk) where T : PKM;
}
public sealed class HomeStorageFacade : IHomeStorage
{
public bool Exists(ulong tracker) => false;
public PKH GetEntity<T>(T pk) where T : PKM => PKH.ConvertFromPKM(pk);
}