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); }
public bool ItemUnlocked(string itemId) => unlockablesMap.TryGetValue(itemId, out var item) && item;