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);
        }
    }
Example #2
0
    private void EvaluateDifficulties(Audica audica)
    {
        var expertCues = audica.expert.cues;

        if (expertCues.Count > 0 && expertCues != null)
        {
            this.expert = new CalculatedDifficulty(expertCues, audica.tempoData);
        }
        var advancedCues = audica.advanced.cues;

        if (advancedCues.Count > 0 && advancedCues != null)
        {
            this.advanced = new CalculatedDifficulty(advancedCues, audica.tempoData);
        }
        var standardCues = audica.moderate.cues;

        if (standardCues.Count > 0 && standardCues != null)
        {
            this.standard = new CalculatedDifficulty(standardCues, audica.tempoData);
        }
        var beginnerCues = audica.beginner.cues;

        if (beginnerCues.Count > 0 && beginnerCues != null)
        {
            this.beginner = new CalculatedDifficulty(beginnerCues, audica.tempoData);
        }
    }
    public static float GetRatingFromCurrentSong()
    {
        var currentDifficulty = new CalculatedDifficulty(Timeline.orderedNotes);

        return(currentDifficulty.difficultyRating);
    }