示例#1
0
 private SAV8SWSH(byte[] data, IReadOnlyList <SCBlock> blocks) : base(data)
 {
     Data         = Array.Empty <byte>();
     AllBlocks    = blocks;
     Blocks       = new SaveBlockAccessor8SWSH(this);
     SaveRevision = Zukan.GetRevision();
     Initialize();
 }
示例#2
0
 public SAV8SWSH()
 {
     AllBlocks    = Meta8.GetBlankDataSWSH();
     Blocks       = new SaveBlockAccessor8SWSH(this);
     SaveRevision = Zukan.GetRevision();
     Initialize();
     ClearBoxes();
 }
示例#3
0
 public SAV8SWSH(byte[] data) : base(data)
 {
     Data         = Array.Empty <byte>();
     AllBlocks    = SwishCrypto.Decrypt(data);
     Blocks       = new SaveBlockAccessor8SWSH(this);
     SaveRevision = Zukan.GetRevision();
     Initialize();
 }
示例#4
0
        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);
            }
        }
示例#5
0
文件: SAV6XY.cs 项目: tools-env/PKHeX
 protected override void SetDex(PKM pkm) => Zukan.SetDex(pkm);
示例#6
0
 public override void SetCaught(int species, bool caught) => Zukan.SetCaught(species, caught);
示例#7
0
 public override void SetSeen(int species, bool seen) => Zukan.SetSeen(species, seen);
示例#8
0
 public override bool GetSeen(int species) => Zukan.GetSeen(species);
示例#9
0
 public override bool GetCaught(int species) => Zukan.GetCaught(species);