public GPScore GetCurrentPlayerScore(GPBoardTimeSpan timeSpan, GPCollectionType collection) { string key = timeSpan.ToString() + "_" + collection.ToString(); if(currentPlayerRank.ContainsKey(key)) { int rank = currentPlayerRank[key]; return GetScore(rank, timeSpan, collection); } else { return null; } }
public void UpdateCurrentPlayerRank(int rank, GPBoardTimeSpan timeSpan, GPCollectionType collection) { string key = timeSpan.ToString() + "_" + collection.ToString(); if (currentPlayerRank.ContainsKey(key)) { currentPlayerRank[key] = rank; } else { currentPlayerRank.Add(key, rank); } }
public GPScore GetCurrentPlayerScore(GPBoardTimeSpan timeSpan, GPCollectionType collection) { string key = timeSpan.ToString() + "_" + collection.ToString(); if (currentPlayerRank.ContainsKey(key)) { int rank = currentPlayerRank[key]; return(GetScore(rank, timeSpan, collection)); } else { return(null); } }
public void UpdateCurrentPlayerRank(int rank, GPBoardTimeSpan timeSpan, GPCollectionType collection) { string key = timeSpan.ToString() + "_" + collection.ToString(); if(currentPlayerRank.ContainsKey(key)) { currentPlayerRank[key] = rank; } else { currentPlayerRank.Add(key, rank); } }