public async Task <Highscore> GetHighscore(string world, HighscoreType type, Vocation vocation) { return(await _highscoreService.Get(world, type, vocation)); }
public static string GetProperString(this HighscoreType type) => type.ToString().ToLower();
public async Task <Highscore> Get(string world, HighscoreType type) { var response = await GetResponse($"{ _baseUri }{ world }//{ type.GetProperString() }.json"); return(JsonConvert.DeserializeObject <HighscoreResponse>(response).Highscores); }
public async Task <Highscore> Get(string world, HighscoreType type, Vocation vocation) { var response = await GetResponse($"{ _baseUri }{ world }//{ type.ToString() }//{ vocation.GetQueryString() }.json"); return(JsonConvert.DeserializeObject <HighscoreResponse>(response).Highscores); }
private void AddAnimationEntry(Queue <ScoreData> animationQueue, HighscoreType highscoreType, float scoreMultiplier, int scoreValue) { highscoreEntries[highscoreType].scoreMultiplier = scoreMultiplier; highscoreEntries[highscoreType].scoreValue = scoreValue; animationQueue.Enqueue(highscoreEntries[highscoreType]); }