Add basic score calculations.

This commit is contained in:
smoogipooo
2017-05-26 19:56:50 +09:00
parent 9ec6e0b692
commit ab5e1bfc89
2 changed files with 154 additions and 0 deletions

View File

@ -2,6 +2,7 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Database;
using osu.Game.Rulesets.Objects.Types;
@ -60,6 +61,11 @@ namespace osu.Game.Rulesets.Mania.Objects
tickSpacing = timingPoint.BeatLength / difficulty.SliderTickRate;
}
/// <summary>
/// Total number of hold note ticks.
/// </summary>
public int TotalTicks => Ticks.Count();
/// <summary>
/// The scoring scoring ticks of the hold note.
/// </summary>