/// <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> /// 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; }
private async Task <AlphaTab.Model.Score> GetPopularScore() { var scoreService = new ScoreServiceManager(); var list = await scoreService.FetchSongsMostViewed(); var firstSong = list.First(); var songDetails = await scoreService.FetchSongDetailsAsync(firstSong.ID); var score = await scoreService.FetchSongScore(songDetails, true); return(score); }
public TablaturePage(Models.SongListItem song) { SelectedSong = song; InitializeComponent(); _scoreService = new ScoreServiceManager(); Device.BeginInvokeOnMainThread(async() => { await LoadTrack(); await LoadTrackMetadata(); }); }
/// <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)); } }
/// <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)); } }
public TabBrowser() { InitializeComponent(); _scoreService = new ScoreServiceManager(); Items = new ObservableCollection <Models.SongListItem>(); ResultList.ItemsSource = Items; //load popular tracks Device.BeginInvokeOnMainThread(async() => { var list = await _scoreService.FetchSongsMostViewed(); Items = new ObservableCollection <Models.SongListItem>(list); ResultList.ItemsSource = Items; }); }