Rename `MetronomeBeatContainer` to `Metronome`

This commit is contained in:
Henry Lin 2021-07-29 15:17:21 +08:00
parent 0196141335
commit 935984d200
2 changed files with 3 additions and 3 deletions

View File

@ -332,7 +332,7 @@ private void randomizeCirclePos(IReadOnlyList<OsuHitObject> hitObjects)
public void ApplyToDrawableRuleset(DrawableRuleset<OsuHitObject> drawableRuleset)
{
drawableRuleset.Overlays.Add(new MetronomeBeatContainer(drawableRuleset.Beatmap.HitObjects.First().StartTime));
drawableRuleset.Overlays.Add(new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime));
}
#endregion

View File

@ -11,14 +11,14 @@
namespace osu.Game.Rulesets.Mods
{
public class MetronomeBeatContainer : BeatSyncedContainer
public class Metronome : BeatSyncedContainer
{
private readonly double firstHitTime;
private PausableSkinnableSound sample;
/// <param name="firstHitTime">Start time of the first hit object, used for providing a count down.</param>
public MetronomeBeatContainer(double firstHitTime)
public Metronome(double firstHitTime)
{
this.firstHitTime = firstHitTime;
AllowMistimedEventFiring = false;