mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Adjust some missed renames
This commit is contained in:
parent
c142b86fd6
commit
4277cb0d59
@ -14,6 +14,6 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
public class TestCaseHitCirclePlacementBlueprint : PlacementBlueprintTestCase
|
||||
{
|
||||
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableHitCircle((HitCircle)hitObject);
|
||||
protected override PlacementBlueprint CreateMask() => new HitCirclePlacementBlueprint();
|
||||
protected override PlacementBlueprint CreateBlueprint() => new HitCirclePlacementBlueprint();
|
||||
}
|
||||
}
|
||||
|
@ -24,6 +24,6 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
Add(drawableObject = new DrawableHitCircle(hitCircle));
|
||||
}
|
||||
|
||||
protected override SelectionBlueprint CreateMask() => new HitCircleSelectionBlueprint(drawableObject);
|
||||
protected override SelectionBlueprint CreateBlueprint() => new HitCircleSelectionBlueprint(drawableObject);
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,6 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
public class TestCaseSliderPlacementBlueprint : PlacementBlueprintTestCase
|
||||
{
|
||||
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableSlider((Slider)hitObject);
|
||||
protected override PlacementBlueprint CreateMask() => new SliderPlacementBlueprint();
|
||||
protected override PlacementBlueprint CreateBlueprint() => new SliderPlacementBlueprint();
|
||||
}
|
||||
}
|
||||
|
@ -50,6 +50,6 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
Add(drawableObject = new DrawableSlider(slider));
|
||||
}
|
||||
|
||||
protected override SelectionBlueprint CreateMask() => new SliderSelectionBlueprint(drawableObject);
|
||||
protected override SelectionBlueprint CreateBlueprint() => new SliderSelectionBlueprint(drawableObject);
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,6 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
{
|
||||
protected override DrawableHitObject CreateHitObject(HitObject hitObject) => new DrawableSpinner((Spinner)hitObject);
|
||||
|
||||
protected override PlacementBlueprint CreateMask() => new SpinnerPlacementBlueprint();
|
||||
protected override PlacementBlueprint CreateBlueprint() => new SpinnerPlacementBlueprint();
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +45,6 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
});
|
||||
}
|
||||
|
||||
protected override SelectionBlueprint CreateMask() => new SpinnerSelectionBlueprint(drawableSpinner) { Size = new Vector2(0.5f) };
|
||||
protected override SelectionBlueprint CreateBlueprint() => new SpinnerSelectionBlueprint(drawableSpinner) { Size = new Vector2(0.5f) };
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace osu.Game.Tests.Visual
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Add(currentBlueprint = CreateMask());
|
||||
Add(currentBlueprint = CreateBlueprint());
|
||||
}
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||
@ -52,7 +52,7 @@ namespace osu.Game.Tests.Visual
|
||||
hitObjectContainer.Add(CreateHitObject(hitObject));
|
||||
|
||||
Remove(currentBlueprint);
|
||||
Add(currentBlueprint = CreateMask());
|
||||
Add(currentBlueprint = CreateBlueprint());
|
||||
}
|
||||
|
||||
public void Delete(HitObject hitObject)
|
||||
@ -60,6 +60,6 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
|
||||
protected abstract DrawableHitObject CreateHitObject(HitObject hitObject);
|
||||
protected abstract PlacementBlueprint CreateMask();
|
||||
protected abstract PlacementBlueprint CreateBlueprint();
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Tests.Visual
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
base.Content.Add(blueprint = CreateMask());
|
||||
base.Content.Add(blueprint = CreateBlueprint());
|
||||
blueprint.SelectionRequested += (_, __) => blueprint.Select();
|
||||
|
||||
AddStep("Select", () => blueprint.Select());
|
||||
@ -42,6 +42,6 @@ namespace osu.Game.Tests.Visual
|
||||
return true;
|
||||
}
|
||||
|
||||
protected abstract SelectionBlueprint CreateMask();
|
||||
protected abstract SelectionBlueprint CreateBlueprint();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user