Exemplo n.º 1
0
    public void AddSolve(string userName, Color userColor, int numSolve = 1)
    {
        LeaderboardEntry entry = GetEntry(userName, userColor);

        entry.AddSolve(numSolve);
        entry.LastAction = DateTime.Now;
        ResetSortFlag();

        string name = userName.ToLowerInvariant();

        CurrentSolvers[name] = CurrentSolvers.TryGetValue(name, out int value) ? value + numSolve : numSolve;
    }
Exemplo n.º 2
0
 public void ResetLeaderboard()
 {
     _entryDictionary.Clear();
     _entryList.Clear();
     _entryListSolo.Clear();
     CurrentSolvers.Clear();
     BombsAttempted    = 0;
     BombsCleared      = 0;
     BombsExploded     = 0;
     OldBombsAttempted = 0;
     OldBombsCleared   = 0;
     OldBombsExploded  = 0;
     OldScore          = 0;
     OldSolves         = 0;
     OldStrikes        = 0;
 }
Exemplo n.º 3
0
 public void ClearSolo()
 {
     SoloSolver = null;
     CurrentSolvers.Clear();
 }