Merge pull request #289 from UselessToucan/JudgementsCapacity

Specify ScoreProcessor.Judgements.Capacity
This commit is contained in:
Dean Herbert
2017-01-23 21:40:00 +09:00
committed by GitHub
8 changed files with 18 additions and 13 deletions

View File

@ -32,11 +32,16 @@ namespace osu.Game.Modes
public readonly BindableInt HighestCombo = new BindableInt();
public readonly List<JudgementInfo> Judgements = new List<JudgementInfo>();
public readonly List<JudgementInfo> Judgements;
public ScoreProcessor()
/// <summary>
/// Initializes a new instance of the <see cref="ScoreProcessor"/> class.
/// </summary>
/// <param name="hitObjectCount">Number of HitObjects. It is used for specifying Judgements collection Capacity</param>
public ScoreProcessor(int hitObjectCount = 0)
{
Combo.ValueChanged += delegate { HighestCombo.Value = Math.Max(HighestCombo.Value, Combo.Value); };
Judgements = new List<JudgementInfo>(hitObjectCount);
}
public void AddJudgement(JudgementInfo judgement)