Example #1
0
 public static void SetPKM(this SaveFile sav, StorageSlotOffset slot, PKM pkm)
 {
     if (slot.IsPartyFormat)
     {
         sav.SetPartySlot(pkm, slot.Offset);
     }
     else
     {
         sav.SetStoredSlot(pkm, slot.Offset);
     }
 }
Example #2
0
 public static PKM GetPKM(this SaveFile sav, StorageSlotOffset slot) => slot.IsPartyFormat
     ? sav.GetPartySlot(slot.Offset)
     : sav.GetStoredSlot(slot.Offset);