Example #1
0
    private int GetTotalNotes(Score score, UserSettings options)
    {
        var totalNotes = 0;

        foreach (var chip in score.ChipList)
        {
            var drumChipProperty = options.DrumChipProperty[chip.ChipType];
            var judgement        = true;
            var autoPlay         = options.AutoPlay(drumChipProperty.AutoPlayType);
            if (autoPlay)
            {
                if (options.AutoPlayAllOn())
                {
                    judgement = drumChipProperty.AutoPlayON_AutoJudge;
                }
                else
                {
                    judgement = false;
                }
            }
            else
            {
                judgement = drumChipProperty.AutoPlayOFF_UserHitJudge;
            }


            if (judgement)
            {
                totalNotes++;
            }
        }
        return(totalNotes);
    }