private SAV8SWSH(byte[] data, IReadOnlyList <SCBlock> blocks) : base(data) { Data = Array.Empty <byte>(); AllBlocks = blocks; Blocks = new SaveBlockAccessor8SWSH(this); SaveRevision = Zukan.GetRevision(); Initialize(); }
public SAV8SWSH() { AllBlocks = Meta8.GetBlankDataSWSH(); Blocks = new SaveBlockAccessor8SWSH(this); SaveRevision = Zukan.GetRevision(); Initialize(); ClearBoxes(); }
public SAV8SWSH(byte[] data) : base(data) { Data = Array.Empty <byte>(); AllBlocks = SwishCrypto.Decrypt(data); Blocks = new SaveBlockAccessor8SWSH(this); SaveRevision = Zukan.GetRevision(); Initialize(); }
protected override void SetDex(PKM pkm) { Zukan.SetDex(pkm); int index = pkm.Species - 1; if ((uint)index >= (uint)MaxSpeciesID) { return; } // Set DexNav count (only if not encountered previously) if (GetEncounterCount(index) == 0) { SetEncounterCount(index, 1); } }
protected override void SetDex(PKM pkm) => Zukan.SetDex(pkm);
public override void SetCaught(int species, bool caught) => Zukan.SetCaught(species, caught);
public override void SetSeen(int species, bool seen) => Zukan.SetSeen(species, seen);
public override bool GetSeen(int species) => Zukan.GetSeen(species);
public override bool GetCaught(int species) => Zukan.GetCaught(species);