Esempio n. 1
0
 public virtual bool ItemUnlocked(string itemId)
 {
     if (string.IsNullOrEmpty(itemId))
     {
         throw new ArgumentNullException(nameof(itemId), "Can't get unlock status of item with empty ID.");
     }
     return(unlockablesMap.TryGetValue(itemId, out var item) && item);
 }
Esempio n. 2
0
 public bool ItemUnlocked(string itemId) => unlockablesMap.TryGetValue(itemId, out var item) && item;