public int GetSingleUnlockProgress(string badgeID) { int retVal = 0; if (SingleUnlockProgress.ContainsKey(badgeID)) { retVal = SingleUnlockProgress[badgeID]; } return(retVal); }
//Update the latest progress for a single badge public void UpdateSingleUnlockProgress(string badgeID, int progress) { if (SingleUnlockProgress.ContainsKey(badgeID)) { SingleUnlockProgress[badgeID] = progress; } else { SingleUnlockProgress.Add(badgeID, progress); } }