private void StartRandomVisibleSongs() { CGame.Reset(); CGame.ClearSongs(); CGame.SetGameMode(GameModes.EGameMode.Normal); List <int> IDs = new List <int>(); for (int i = 0; i < CSongs.VisibleSongs.Length; i++) { IDs.Add(CSongs.VisibleSongs[i].ID); } while (IDs.Count > 0) { int SongNr = IDs[CGame.Rand.Next(IDs.Count)]; if (!CSongs.AllSongs[SongNr].IsDuet) { CGame.AddSong(SongNr); } IDs.Remove(SongNr); } if (CGame.GetNumSongs() > 0) { CGraphics.FadeTo(EScreens.ScreenNames); } }
private void StartRandomVisibleSongs() { CGame.Reset(); CGame.ClearSongs(); List <int> IDs = new List <int>(); for (int i = 0; i < CSongs.VisibleSongs.Length; i++) { IDs.Add(CSongs.VisibleSongs[i].ID); } while (IDs.Count > 0) { int SongNr = IDs[CGame.Rand.Next(IDs.Count)]; EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL; if (CSongs.AllSongs[SongNr].IsDuet) { gm = EGameMode.TR_GAMEMODE_DUET; } CGame.AddSong(SongNr, gm); IDs.Remove(SongNr); } if (CGame.GetNumSongs() > 0) { CGraphics.FadeTo(EScreens.ScreenNames); } }
private void StartSong(int SongNr, bool Duet) { if (SongNr >= 0 && CSongs.SongsLoaded) { CGame.Reset(); CGame.ClearSongs(); EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL; if (CSongs.AllSongs[SongNr].IsDuet) { gm = EGameMode.TR_GAMEMODE_DUET; } CGame.AddSong(SongNr, gm); CGraphics.FadeTo(EScreens.ScreenNames); } }
private void _StartSong(int songNr) { if (songNr < 0 || !CSongs.SongsLoaded) { return; } CGame.Reset(); CGame.ClearSongs(); var gm = EGameMode.TR_GAMEMODE_NORMAL; if (CSongs.AllSongs[songNr].IsGameModeAvailable(EGameMode.TR_GAMEMODE_DUET)) { gm = EGameMode.TR_GAMEMODE_DUET; } CGame.AddSong(songNr, gm); CGame.GotoNameSelection(); }