mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 13:37:51 +08:00
f7d985fe18
Moves star difficulty calculation entry-point to Beatmap, and sets star difficulty at the correct place for song select to display.
30 lines
936 B
C#
30 lines
936 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Modes.Mania.Objects;
|
|
using osu.Game.Modes.Objects;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace osu.Game.Modes.Mania
|
|
{
|
|
public class ManiaDifficultyCalculator : DifficultyCalculator<ManiaBaseHit>
|
|
{
|
|
protected override PlayMode PlayMode => PlayMode.Mania;
|
|
|
|
private int columns;
|
|
|
|
public ManiaDifficultyCalculator(Beatmap beatmap, int columns = 5) : base(beatmap)
|
|
{
|
|
this.columns = columns;
|
|
}
|
|
|
|
protected override HitObjectConverter<ManiaBaseHit> Converter => new ManiaConverter(columns);
|
|
|
|
protected override double CalculateInternal(Dictionary<String, String> categoryDifficulty)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
} |