mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Update tests to use more correct control point definitions
This commit is contained in:
@ -388,7 +388,7 @@ namespace osu.Game.Rulesets.Mania.Tests
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
beatmap.ControlPointInfo.Add(0, new DifficultyControlPoint { SliderVelocity = 0.1f });
|
beatmap.ControlPointInfo.Add(0, new EffectControlPoint { ScrollSpeed = 0.1f });
|
||||||
}
|
}
|
||||||
|
|
||||||
AddStep("load player", () =>
|
AddStep("load player", () =>
|
||||||
|
@ -148,7 +148,7 @@ namespace osu.Game.Rulesets.Mania.Tests
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Beatmap.Value.Beatmap.ControlPointInfo.Add(0, new DifficultyControlPoint { SliderVelocity = 0.1f });
|
Beatmap.Value.Beatmap.ControlPointInfo.Add(0, new EffectControlPoint { ScrollSpeed = 0.1f });
|
||||||
|
|
||||||
var p = new ScoreAccessibleReplayPlayer(new Score { Replay = new Replay { Frames = frames } });
|
var p = new ScoreAccessibleReplayPlayer(new Score { Replay = new Replay { Frames = frames } });
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ using osuTK.Graphics;
|
|||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using osu.Game.Beatmaps.Legacy;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Rulesets.Judgements;
|
using osu.Game.Rulesets.Judgements;
|
||||||
@ -328,10 +329,14 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
|
|
||||||
private Drawable createDrawable(Slider slider, float circleSize, double speedMultiplier)
|
private Drawable createDrawable(Slider slider, float circleSize, double speedMultiplier)
|
||||||
{
|
{
|
||||||
var cpi = new ControlPointInfo();
|
var cpi = new LegacyControlPointInfo();
|
||||||
cpi.Add(0, new DifficultyControlPoint { SliderVelocity = speedMultiplier });
|
cpi.Add(0, new DifficultyControlPoint { SliderVelocity = speedMultiplier });
|
||||||
|
|
||||||
slider.ApplyDefaults(cpi, new BeatmapDifficulty { CircleSize = circleSize, SliderTickRate = 3 });
|
slider.ApplyDefaults(cpi, new BeatmapDifficulty
|
||||||
|
{
|
||||||
|
CircleSize = circleSize,
|
||||||
|
SliderTickRate = 3
|
||||||
|
});
|
||||||
|
|
||||||
var drawable = CreateDrawableSlider(slider);
|
var drawable = CreateDrawableSlider(slider);
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
|||||||
// completely ignore "legacy" types, which have been moved to HitObjects.
|
// completely ignore "legacy" types, which have been moved to HitObjects.
|
||||||
// even though these would mostly be ignored by the Add call, they will still be available in groups,
|
// even though these would mostly be ignored by the Add call, they will still be available in groups,
|
||||||
// which isn't what we want to be testing here.
|
// which isn't what we want to be testing here.
|
||||||
if (point is SampleControlPoint)
|
if (point is SampleControlPoint || point is DifficultyControlPoint)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
newControlPoints.Add(point.Time, point.DeepClone());
|
newControlPoints.Add(point.Time, point.DeepClone());
|
||||||
|
@ -56,8 +56,6 @@ namespace osu.Game.Tests.Editing
|
|||||||
|
|
||||||
composer.EditorBeatmap.BeatmapInfo.BaseDifficulty.SliderMultiplier = 1;
|
composer.EditorBeatmap.BeatmapInfo.BaseDifficulty.SliderMultiplier = 1;
|
||||||
composer.EditorBeatmap.ControlPointInfo.Clear();
|
composer.EditorBeatmap.ControlPointInfo.Clear();
|
||||||
|
|
||||||
composer.EditorBeatmap.ControlPointInfo.Add(0, new DifficultyControlPoint { SliderVelocity = 1 });
|
|
||||||
composer.EditorBeatmap.ControlPointInfo.Add(0, new TimingControlPoint { BeatLength = 1000 });
|
composer.EditorBeatmap.ControlPointInfo.Add(0, new TimingControlPoint { BeatLength = 1000 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestOrdering()
|
public void TestOrdering()
|
||||||
{
|
{
|
||||||
var cpi = new ControlPointInfo();
|
var cpi = new LegacyControlPointInfo();
|
||||||
|
|
||||||
cpi.Add(0, new TimingControlPoint());
|
cpi.Add(0, new TimingControlPoint());
|
||||||
cpi.Add(1000, new TimingControlPoint { BeatLength = 500 });
|
cpi.Add(1000, new TimingControlPoint { BeatLength = 500 });
|
||||||
|
Reference in New Issue
Block a user