1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00
osu-lazer/osu.Game.Rulesets.Mania/ManiaDifficultyCalculator.cs

24 lines
884 B
C#
Raw Normal View History

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