public void UpdateCurrentPlayerRank(int rank, GK_TimeSpan timeSpan, GK_CollectionType collection) {
		string key = timeSpan.ToString() + "_" + collection.ToString();
		if(currentPlayerRank.ContainsKey(key)) {
			currentPlayerRank[key] = rank;
		} else {
			currentPlayerRank.Add(key, rank);
		}
	}
	public GK_Score GetCurrentPlayerScore(GK_TimeSpan timeSpan, GK_CollectionType collection) {
		string key = timeSpan.ToString() + "_" + collection.ToString();
		if(currentPlayerRank.ContainsKey(key)) {
			int rank = currentPlayerRank[key];
			return GetScore(rank, timeSpan, collection);
		} else {
			return null;
		}
		
	}
示例#3
0
    public void UpdateCurrentPlayerRank(int rank, GK_TimeSpan timeSpan, GK_CollectionType collection)
    {
        string key = timeSpan.ToString() + "_" + collection.ToString();

        if (currentPlayerRank.ContainsKey(key))
        {
            currentPlayerRank[key] = rank;
        }
        else
        {
            currentPlayerRank.Add(key, rank);
        }
    }
示例#4
0
    public GK_Score GetCurrentPlayerScore(GK_TimeSpan timeSpan, GK_CollectionType collection)
    {
        string key = timeSpan.ToString() + "_" + collection.ToString();

        if (currentPlayerRank.ContainsKey(key))
        {
            int rank = currentPlayerRank[key];
            return(GetScore(rank, timeSpan, collection));
        }
        else
        {
            return(null);
        }
    }