public static UpdateUsedItems ( ) : void | ||
Результат | void |
public static void AddUsedItems(Hunt hunt, Dictionary <string, Dictionary <string, HashSet <int> > > usedItems) { bool newValues = hunt.AddUsedItems(usedItems); if (newValues) { GlobalDataManager.UpdateUsedItems(); } }
public static void AddUsedItems(Hunt hunt, Item item, int itemCount) { if (itemCount == 0 || item == null) { return; } hunt.AddUsedItems(new List <Tuple <Item, int> > { new Tuple <Item, int>(item, itemCount) }); GlobalDataManager.UpdateUsedItems(); }