/// <summary> /// Sets the series if it exists in the list. Returns success. /// </summary> public bool SetSeries(LevelSeries series) { int foundIndex = seriesList.IndexOf(series); if (foundIndex == -1) { return(false); } seriesIndex = foundIndex; //Goes to the first level of next series if possible. if (seriesList[seriesIndex].LevelExists()) { game.GmState = GameState.stateGameplay; game.SetScreenCaption("Gameplay"); seriesList[seriesIndex].LoadCampaign(); } else { game.GmState = GameState.stateCampaignModes; } return(true); }
/// <summary> /// Adds another level series to the end. /// </summary> public void AddSeries(LevelSeries series) { seriesList.Add(series); }