PKHeX/PKHeX.Core/Saves/Substructures/Gen8/Fused8.cs
Kurt e21d108fb2 Split PokeCrypto from PKX
All logic in PokeCrypto is separate from the rest of the PKHeX.Core
library; makes it easy to just rip this portion out and reuse in other
projects without needing the entirety of PKHeX.Core logic

optimize out the CheckEncrypted to the actual path, separate methods.
Only usages of this method were with hardcoded Format values, so no
impact
2020-01-04 14:48:39 -08:00

17 lines
No EOL
514 B
C#

namespace PKHeX.Core
{
/// <summary>
/// Storage for the Fused species, <see cref="Species.Kyurem"/>, <see cref="Species.Solgaleo"/>, <see cref="Species.Lunala"/>
/// </summary>
public sealed class Fused8 : SaveBlock
{
public Fused8(SaveFile sav, SCBlock block) : base(sav, block.Data) { }
public static int GetFusedSlotOffset(int slot)
{
if ((uint)slot >= 3)
return -1;
return PokeCrypto.SIZE_8PARTY * slot;
}
}
}