1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Rename method

This commit is contained in:
ekrctb 2021-10-26 11:14:12 +09:00
parent 068217557e
commit b7a719de71

View File

@ -102,7 +102,7 @@ namespace osu.Game.Rulesets.Catch.Edit
protected override ComposeBlueprintContainer CreateBlueprintContainer() => new CatchBlueprintContainer(this);
[CanBeNull]
private PalpableCatchHitObject getPreviousHitObject(double time)
private PalpableCatchHitObject getLastSnappableHitObject(double time)
{
var hitObject = EditorBeatmap.HitObjects.OfType<CatchHitObject>().LastOrDefault(h => h.GetEndTime() < time && !(h is BananaShower));
@ -129,7 +129,7 @@ namespace osu.Game.Rulesets.Catch.Edit
return null;
double minTime = EditorBeatmap.SelectedHitObjects.Min(hitObject => hitObject.StartTime);
return getPreviousHitObject(minTime);
return getLastSnappableHitObject(minTime);
case FruitCompositionTool _:
case JuiceStreamCompositionTool _:
@ -143,7 +143,7 @@ namespace osu.Game.Rulesets.Catch.Edit
}
double timeAtCursor = ((CatchPlayfield)Playfield).TimeAtScreenSpacePosition(inputManager.CurrentState.Mouse.Position);
return getPreviousHitObject(timeAtCursor);
return getLastSnappableHitObject(timeAtCursor);
default:
return null;