コード例 #1
0
    List <KeyValuePair <string, int> > GetScores(Category category)
    {
        List <KeyValuePair <string, int> > scores = new List <KeyValuePair <string, int> > ();

        switch (category)
        {
        case Category.gemsDelivered:
            scores = scoreTracker.GetSortedGemDeliveries();
            break;

        case Category.rocksDodged:
            scores = scoreTracker.GetSortedRockDodges();
            break;

        case Category.kills:
            scores = scoreTracker.GetSortedKills();
            break;

        default:
            break;
        }
        return(scores);
    }