public static void StockUpPasteSettings(this Pawn pawn) { Dictionary <Pawn, ExDictionary <ThingDef, int> > settings = SmartMedicineGameComp.Settings(); if (settings.ContainsKey(SmartMedicineGameComp.Get().copiedPawn)) { settings[pawn] = new ExDictionary <ThingDef, int>(settings[SmartMedicineGameComp.Get().copiedPawn]); } }
public static Dictionary <ThingDef, int> StockUpSettings(this Pawn pawn) { Dictionary <Pawn, ExDictionary <ThingDef, int> > settings = SmartMedicineGameComp.Get(); if (!settings.TryGetValue(pawn, out ExDictionary <ThingDef, int> pawnSettings)) { settings[pawn] = pawnSettings = new ExDictionary <ThingDef, int>(); } return(pawnSettings); }
public static Pawn CopiedPawn() { return(SmartMedicineGameComp.Get().copiedPawn); }
public static void StockUpCopySettings(this Pawn pawn) { SmartMedicineGameComp.Get().copiedPawn = pawn; }