private void EvaluateDifficulties(SongList.SongData songData) { var expertCues = SongCues.GetCues(songData, KataConfig.Difficulty.Expert); if (expertCues.Length > 0 && expertCues != null) { this.expert = new CalculatedDifficulty(expertCues, songData); } var advancedCues = SongCues.GetCues(songData, KataConfig.Difficulty.Hard); if (advancedCues.Length > 0 && advancedCues != null) { this.advanced = new CalculatedDifficulty(advancedCues, songData); } var standardCues = SongCues.GetCues(songData, KataConfig.Difficulty.Normal); if (standardCues.Length > 0 && standardCues != null) { this.standard = new CalculatedDifficulty(standardCues, songData); } var beginnerCues = SongCues.GetCues(songData, KataConfig.Difficulty.Easy); if (beginnerCues.Length > 0 && beginnerCues != null) { this.beginner = new CalculatedDifficulty(beginnerCues, songData); } }
public static int GetFirstTick() { if (cachedFirstTick == 0) { SongList.SongData songData = SongDataHolder.I.songData; KataConfig.Difficulty diff = KataConfig.I.GetDifficulty(); cachedFirstTick = SongCues.GetCues(songData, diff)[0].tick; } return(cachedFirstTick); }