/// <summary> /// Prevents a default instance of the <see cref="GameSettings"/> class from being created. /// </summary> private GameSettings() { this.TotalCustomLevels = 0; this.PlayerName = "BOB"; this.LevelsUnlocked = 1; this.LevelScoreTables = new Collection <LevelScoreTable>(); this.scoreServiceManager = ScoreServiceManager.Initialize(); this.soundEffectsEnabled = true; this.musicEnabled = true; this.UploadHighScores = true; }
/// <summary> /// Initializes a new instance of the <see cref="GameSettings"/> class. /// </summary> /// <param name="createDefaults">A value indicating that the default lists should be created.</param> private GameSettings(int createDefaults) { this.TotalCustomLevels = 0; this.PlayerName = "BOB"; this.LevelsUnlocked = 1; this.LevelScoreTables = new Collection <LevelScoreTable>(); this.scoreServiceManager = ScoreServiceManager.Initialize(); this.soundEffectsEnabled = true; this.musicEnabled = true; this.UploadHighScores = true; for (int count = 0; count < GameSettings.TotalLevels; ++count) { this.LevelScoreTables.Add(new LevelScoreTable(1)); } }