mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 07:22:54 +08:00
apply code quality fixes
This commit is contained in:
parent
bca3994d91
commit
0d36907cad
@ -37,7 +37,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
[SetUpSteps]
|
||||
public void SetupSteps()
|
||||
{
|
||||
AddStep("reset clock", () => gameplayClockContainer.Reset(false));
|
||||
AddStep("reset clock", () => gameplayClockContainer.Reset());
|
||||
AddStep("set hit objects", setHitObjects);
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,9 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
protected override void UpdateObjects(IEnumerable<HitObject> objects)
|
||||
{
|
||||
if (objects != null)
|
||||
graph.Objects = objects;
|
||||
|
||||
info.StartTime = FirstHitTime;
|
||||
info.EndTime = LastHitTime;
|
||||
bar.StartTime = FirstHitTime;
|
||||
|
@ -30,8 +30,8 @@ namespace osu.Game.Screens.Play.HUD
|
||||
set
|
||||
{
|
||||
objects = value;
|
||||
FirstHitTime = objects.FirstOrDefault()?.StartTime ?? 0;
|
||||
LastHitTime = objects.LastOrDefault()?.GetEndTime() ?? 0;
|
||||
FirstHitTime = objects?.FirstOrDefault()?.StartTime ?? 0;
|
||||
LastHitTime = objects?.LastOrDefault()?.GetEndTime() ?? 0;
|
||||
UpdateObjects(objects);
|
||||
}
|
||||
}
|
||||
@ -42,7 +42,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
protected double LastHitTime { get; private set; }
|
||||
|
||||
protected abstract void UpdateProgress(double progress, bool isIntro);
|
||||
protected abstract void UpdateObjects(IEnumerable<HitObject> objects);
|
||||
protected abstract void UpdateObjects(IEnumerable<HitObject>? objects);
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
|
@ -66,7 +66,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
}
|
||||
|
||||
protected override void UpdateObjects(IEnumerable<HitObject> objects)
|
||||
protected override void UpdateObjects(IEnumerable<HitObject>? objects)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user