public int IncreaseCounter(Asda2TitleId title, int increaceCounterBy = 1) { if (ProgressRecords[(int)title] == null) { ProgressRecords[(int)title] = new Asda2TitleProgressRecord { TitleId = (int)title, Counter = 0 }; } else if (ProgressRecords[(int)title].Counter >= MaxCounterValue) { return(ProgressRecords[(int)title].Counter); } ProgressRecords[(int)title].Counter += increaceCounterBy; return(ProgressRecords[(int)title].Counter); }
public void InitNew() { ProgressRecords = new Asda2TitleProgressRecord[1000]; }