Esempio n. 1
0
        private void WriteSlot(ISlotInfo slot, PKM pkm, SlotTouchType type = SlotTouchType.Set)
        {
            Changelog.AddNewChange(slot);
            var result = slot.WriteTo(SAV, pkm);

            if (result)
            {
                NotifySlotChanged(slot, type, pkm);
            }
        }
Esempio n. 2
0
        private void WriteSlot(ISlotInfo slot, PKM pkm, SlotTouchType type = SlotTouchType.Set)
        {
            Changelog.AddNewChange(slot);
            var setDetail = type is SlotTouchType.Swap ? PKMImportSetting.Skip : PKMImportSetting.UseDefault;
            var result    = slot.WriteTo(SAV, pkm, setDetail);

            if (result)
            {
                NotifySlotChanged(slot, type, pkm);
            }
        }