mirror of
https://github.com/ppy/osu
synced 2025-01-03 12:52:10 +00:00
General fixups.
This commit is contained in:
parent
77a4a896c9
commit
1c7a9e3a07
@ -93,9 +93,9 @@ namespace osu.Game.Modes.Catch
|
||||
|
||||
public override DifficultyCalculator CreateDifficultyCalculator(Beatmap beatmap) => new CatchDifficultyCalculator(beatmap);
|
||||
|
||||
public override IBeatmapConverter<CatchBaseHit> CreateBeatmapConverter<CatchBaseHit>()
|
||||
public override IBeatmapConverter<T> CreateBeatmapConverter<T>()
|
||||
{
|
||||
return (IBeatmapConverter<CatchBaseHit>)new CatchBeatmapConverter();
|
||||
return (IBeatmapConverter<T>)new CatchBeatmapConverter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,11 +12,9 @@ namespace osu.Game.Modes.Mania
|
||||
{
|
||||
protected override PlayMode PlayMode => PlayMode.Mania;
|
||||
|
||||
private int columns;
|
||||
|
||||
public ManiaDifficultyCalculator(Beatmap beatmap, int columns = 5) : base(beatmap)
|
||||
public ManiaDifficultyCalculator(Beatmap beatmap)
|
||||
: base(beatmap)
|
||||
{
|
||||
this.columns = columns;
|
||||
}
|
||||
|
||||
protected override double CalculateInternal(Dictionary<String, String> categoryDifficulty)
|
||||
|
@ -108,9 +108,9 @@ namespace osu.Game.Modes.Mania
|
||||
|
||||
public override DifficultyCalculator CreateDifficultyCalculator(Beatmap beatmap) => new ManiaDifficultyCalculator(beatmap);
|
||||
|
||||
public override IBeatmapConverter<ManiaBaseHit> CreateBeatmapConverter<ManiaBaseHit>()
|
||||
public override IBeatmapConverter<T> CreateBeatmapConverter<T>()
|
||||
{
|
||||
return (IBeatmapConverter<ManiaBaseHit>)new ManiaBeatmapConverter();
|
||||
return (IBeatmapConverter<T>)new ManiaBeatmapConverter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -120,9 +120,9 @@ namespace osu.Game.Modes.Osu
|
||||
new KeyCounterMouse(MouseButton.Right)
|
||||
};
|
||||
|
||||
public override IBeatmapConverter<OsuHitObject> CreateBeatmapConverter<OsuHitObject>()
|
||||
public override IBeatmapConverter<T> CreateBeatmapConverter<T>()
|
||||
{
|
||||
return (IBeatmapConverter<OsuHitObject>)new OsuBeatmapConverter();
|
||||
return (IBeatmapConverter<T>)new OsuBeatmapConverter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -94,9 +94,9 @@ namespace osu.Game.Modes.Taiko
|
||||
|
||||
public override DifficultyCalculator CreateDifficultyCalculator(Beatmap beatmap) => new TaikoDifficultyCalculator(beatmap);
|
||||
|
||||
public override IBeatmapConverter<TaikoBaseHit> CreateBeatmapConverter<TaikoBaseHit>()
|
||||
public override IBeatmapConverter<T> CreateBeatmapConverter<T>()
|
||||
{
|
||||
return (IBeatmapConverter<TaikoBaseHit>)new TaikoBeatmapConverter();
|
||||
return (IBeatmapConverter<T>)new TaikoBeatmapConverter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Game.Beatmaps.Timing;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Modes;
|
||||
using osu.Game.Modes.Objects;
|
||||
using System.Collections.Generic;
|
||||
|
Loading…
Reference in New Issue
Block a user