mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00:00
24 lines
884 B
C#
24 lines
884 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.Rulesets.Mania.Beatmaps;
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
using System.Collections.Generic;
|
|
using System;
|
|
|
|
namespace osu.Game.Rulesets.Mania
|
|
{
|
|
public class ManiaDifficultyCalculator : DifficultyCalculator<ManiaHitObject>
|
|
{
|
|
public ManiaDifficultyCalculator(Beatmap beatmap)
|
|
: base(beatmap)
|
|
{
|
|
}
|
|
|
|
public override double Calculate(Dictionary<string, double> categoryDifficulty = null) => 0;
|
|
|
|
protected override BeatmapConverter<ManiaHitObject> CreateBeatmapConverter(Beatmap beatmap) => new ManiaBeatmapConverter(true, (int)Math.Max(1, Math.Round(beatmap.BeatmapInfo.BaseDifficulty.CircleSize)));
|
|
}
|
|
}
|