2017-02-20 00:41:51 +08:00
|
|
|
|
// 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;
|
2017-04-18 15:05:58 +08:00
|
|
|
|
using osu.Game.Rulesets.Mania.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Objects;
|
2017-02-20 00:41:51 +08:00
|
|
|
|
using System.Collections.Generic;
|
2017-08-22 12:34:58 +08:00
|
|
|
|
using System;
|
2017-02-20 00:41:51 +08:00
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Mania
|
2017-02-20 00:41:51 +08:00
|
|
|
|
{
|
2017-05-03 11:44:19 +08:00
|
|
|
|
public class ManiaDifficultyCalculator : DifficultyCalculator<ManiaHitObject>
|
2017-02-20 00:41:51 +08:00
|
|
|
|
{
|
2017-03-12 00:26:07 +08:00
|
|
|
|
public ManiaDifficultyCalculator(Beatmap beatmap)
|
|
|
|
|
: base(beatmap)
|
2017-02-20 00:41:51 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-21 18:54:53 +08:00
|
|
|
|
public override double Calculate(Dictionary<string, double> categoryDifficulty = null) => 0;
|
2017-03-12 13:32:50 +08:00
|
|
|
|
|
2017-11-17 13:37:06 +08:00
|
|
|
|
protected override BeatmapConverter<ManiaHitObject> CreateBeatmapConverter(Beatmap beatmap) => new ManiaBeatmapConverter(true, (int)Math.Max(1, Math.Round(beatmap.BeatmapInfo.BaseDifficulty.CircleSize)));
|
2017-02-20 00:41:51 +08:00
|
|
|
|
}
|
2017-08-22 12:34:58 +08:00
|
|
|
|
}
|