Exemplo n.º 1
0
 public PokeSysBotMini(LiveHeXVersion lv, InjectorCommunicationType ict)
 {
     Version   = lv;
     com       = RamOffsets.GetCommunicator(lv, ict);
     BoxStart  = RamOffsets.GetB1S1Offset(lv);
     SlotSize  = RamOffsets.GetSlotSize(lv);
     SlotCount = RamOffsets.GetSlotCount(lv);
     GapSize   = RamOffsets.GetGapSize(lv);
 }
        public void ReadBox(int box)
        {
            var sav  = SAV.SAV;
            var len  = SAV.SAV.BoxSlotCount * (RamOffsets.GetSlotSize(Bot.Version) + RamOffsets.GetGapSize(Bot.Version));
            var data = Bot.ReadBox(box, len);

            sav.SetBoxBinary(data, box);
            SAV.ReloadSlots();
        }