PKHeX/PKHeX.Core/Saves/Substructures/Gen8/Party8.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

13 lines
No EOL
332 B
C#

namespace PKHeX.Core
{
public sealed class Party8 : SaveBlock
{
public Party8(SaveFile sav, SCBlock block) : base(sav, block.Data) { }
public int PartyCount
{
get => Data[6 * PokeCrypto.SIZE_8PARTY];
set => Data[6 * PokeCrypto.SIZE_8PARTY] = (byte)value;
}
}
}