mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
* 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>
13 lines
312 B
C#
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);
|
|
}
|