private void _LoadScores() { _Pos = 0; int rounds = CGame.NumRounds; _Scores = new List <SDBScoreEntry> [rounds]; for (int round = 0; round < rounds; round++) { int songID = CGame.GetSong(round).ID; EGameMode gameMode = CGame.GetGameMode(round); EHighscoreStyle style = CBase.Config.GetHighscoreStyle(); _Scores[round] = CDataBase.LoadScore(songID, gameMode, style); } }
private void LoadScores() { CPoints points = CGame.GetPoints(); if (points == null) { return; } _Pos = 0; for (int round = 0; round < points.NumRounds; round++) { SPlayer player = points.GetPlayer(round, CGame.NumPlayer)[0]; CDataBase.LoadScore(ref _Scores[round], player); } }
private void LoadScores() { CPoints points = CGame.GetPoints(); if (points == null) { return; } _Pos = 0; for (int round = 0; round < points.NumRounds; round++) { SPlayer player = points.GetPlayer(round, CGame.NumPlayer)[0]; CDataBase.LoadScore(ref _Scores, player); if (round == _Round) { _IsDuet = false; CSong song = CSongs.GetSong(player.SongID); Texts[htTexts(TextSongName)].Text = song.Artist + " - " + song.Title; switch (CGame.GameMode) { case EGameMode.Normal: Texts[htTexts(TextSongMode)].Text = "TR_GAMEMODE_NORMAL"; break; case EGameMode.Medley: Texts[htTexts(TextSongMode)].Text = "TR_GAMEMODE_MEDLEY"; break; case EGameMode.Duet: Texts[htTexts(TextSongMode)].Text = "TR_GAMEMODE_DUET"; _IsDuet = true; break; default: Texts[htTexts(TextSongMode)].Text = "TR_GAMEMODE_NORMAL"; break; } } } }
private void _LoadScores() { _Pos = 0; int rounds = CGame.NumRounds; if (rounds == 0) { _FromScreenSong = true; _Round = (int)EGameMode.TR_GAMEMODE_NORMAL; _Scores = new List <SDBScoreEntry> [4]; int songID = CScreenSong.getSelectedSongID(); EHighscoreStyle style = CBase.Config.GetHighscoreStyle(); bool foundHighscoreEntries = false; for (int gameModeNum = 0; gameModeNum < 4; gameModeNum++) { _Scores[gameModeNum] = CDataBase.LoadScore(songID, (EGameMode)gameModeNum, style); if (!foundHighscoreEntries && _Scores[gameModeNum].Count > 0) { _Round = gameModeNum; foundHighscoreEntries = true; } } } else { _FromScreenSong = false; _Scores = new List <SDBScoreEntry> [rounds]; for (int round = 0; round < rounds; round++) { int songID = CGame.GetSong(round).ID; EGameMode gameMode = CGame.GetGameMode(round); EHighscoreStyle style = CBase.Config.GetHighscoreStyle(); _Scores[round] = CDataBase.LoadScore(songID, gameMode, style); } } }