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); } }
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); } }