diff --git a/osu-framework b/osu-framework index 8c79c94aa7..036b124eb2 160000 --- a/osu-framework +++ b/osu-framework @@ -1 +1 @@ -Subproject commit 8c79c94aa71711cf9c8bb169f684df2e35596f9d +Subproject commit 036b124eb2387dde29af56e06391c42063ec85e2 diff --git a/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs b/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs index 767fb0dffb..aff2903078 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs @@ -48,6 +48,7 @@ namespace osu.Desktop.VisualTests.Tests HitObjects = objects, BeatmapInfo = new BeatmapInfo { + BaseDifficulty = new BaseDifficulty(), Metadata = new BeatmapMetadata { Artist = @"Unknown", diff --git a/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs b/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs index b5c7ddeb27..37e223d7a8 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs @@ -1,20 +1,21 @@ // Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using System.Collections.Generic; -using osu.Framework.Screens.Testing; -using osu.Framework.Graphics; -using osu.Framework.Timing; using OpenTK; +using OpenTK.Graphics; using osu.Framework.Configuration; -using osu.Game.Modes.Objects.Drawables; -using osu.Game.Modes.Osu.Objects; -using osu.Game.Modes.Osu.Objects.Drawables; +using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.UserInterface; using osu.Game.Modes.Osu.Judgements; -using OpenTK.Graphics; +using osu.Framework.Screens.Testing; +using osu.Framework.Timing; +using osu.Game.Modes.Objects; +using osu.Game.Modes.Objects.Drawables; +using osu.Game.Modes.Osu.Objects; +using osu.Game.Modes.Osu.Objects.Drawables; +using System.Collections.Generic; namespace osu.Desktop.VisualTests.Tests { @@ -61,12 +62,15 @@ namespace osu.Desktop.VisualTests.Tests add(new DrawableSlider(new Slider { StartTime = framedClock.CurrentTime + 600, - ControlPoints = new List + CurveObject = new CurvedHitObject { - new Vector2(-200, 0), - new Vector2(400, 0), + ControlPoints = new List + { + new Vector2(-200, 0), + new Vector2(400, 0), + }, + Distance = 400 }, - Length = 400, Position = new Vector2(-200, 0), Velocity = 1, TickDistance = 100, @@ -76,7 +80,7 @@ namespace osu.Desktop.VisualTests.Tests add(new DrawableSpinner(new Spinner { StartTime = framedClock.CurrentTime + 600, - Length = 1000, + EndTime = framedClock.CurrentTime + 1600, Position = new Vector2(0, 0), })); break; diff --git a/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs b/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs index ee58d934a4..0d32532f09 100644 --- a/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs +++ b/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs @@ -6,7 +6,6 @@ using System.Linq; using osu.Framework.Allocation; using osu.Framework.Screens.Testing; using osu.Game.Beatmaps; -using osu.Game.Beatmaps.Formats; using OpenTK; using osu.Framework.Graphics.Sprites; using osu.Game.Beatmaps.IO; @@ -61,13 +60,12 @@ namespace osu.Desktop.VisualTests.Tests time += 500; } - var decoder = new ConstructableBeatmapDecoder(); - Beatmap b = new Beatmap { HitObjects = objects, BeatmapInfo = new BeatmapInfo { + BaseDifficulty = new BaseDifficulty(), Metadata = new BeatmapMetadata { Artist = @"Unknown", @@ -77,8 +75,6 @@ namespace osu.Desktop.VisualTests.Tests } }; - decoder.Process(b); - beatmap = new TestWorkingBeatmap(b); } diff --git a/osu.Desktop.VisualTests/packages.config b/osu.Desktop.VisualTests/packages.config index c3f267ac89..5a30c50600 100644 --- a/osu.Desktop.VisualTests/packages.config +++ b/osu.Desktop.VisualTests/packages.config @@ -1,5 +1,4 @@  -