public int HowManyLootboxesDoesViewerHave(string username) { if (ViewersLootboxes.ContainsKey(username)) { return(ViewersLootboxes[username]); } return(0); }
public void GiveViewerLootbox(string username, int amount = 1) { if (ViewersLootboxes.ContainsKey(username)) { ViewersLootboxes[username] += amount; } else { ViewersLootboxes.Add(username, amount); } }
public bool DoesViewerHaveLootboxes(string username) { if (ViewersLootboxes.ContainsKey(username)) { if (ViewersLootboxes[username] > 0) { return(true); } } return(false); }