private string GetSlotInfo(SlotCache entry) { return(entry.Source switch { SlotInfoBox box => $"[Box {box.Box + 1}, Slot {box.Slot + 1}]", SlotInfoParty party => $"[Party, Slot {party.Slot}]", _ => "" });
private static void AddPartyData(SaveFile sav, ConcurrentBag <SlotCache> db) { var pd = sav.PartyData; for (var index = 0; index < pd.Count; index++) { var pk = pd[index]; if (pk.Species == 0) { continue; } var ident = new SlotInfoParty(index); var result = new SlotCache(ident, pk, sav); db.Add(result); } }