Skip to content

Commit ec3d06b

Browse files
fix(ci): replace osuTK usages with System.Numerics/Colour4 in LegacyStoryboardEncoderTest
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/52588c74-d9fd-4401-b050-cee29465a0ed Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent d6e1e6a commit ec3d06b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

osu.Game.Tests/Beatmaps/Formats/LegacyStoryboardEncoderTest.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
using osu.Game.Beatmaps.Formats;
1111
using osu.Game.IO;
1212
using osu.Game.Storyboards;
13-
using osuTK;
14-
using osuTK.Graphics;
13+
using System.Numerics;
1514

1615
namespace osu.Game.Tests.Beatmaps.Formats
1716
{
@@ -150,7 +149,7 @@ public void TestCommands()
150149
var sprite = new StoryboardSprite(StoryboardElementSource.Beatmap, "test.jpg", Anchor.Centre, new Vector2(300));
151150
sprite.Commands.AddAlpha(Easing.InBack, 100, 200, 0, 1);
152151
sprite.Commands.AddBlendingParameters(Easing.None, 300, 300, BlendingParameters.Additive, BlendingParameters.Additive);
153-
sprite.Commands.AddColour(Easing.InCubic, 400, 500, Color4.White, Color4.Aquamarine);
152+
sprite.Commands.AddColour(Easing.InCubic, 400, 500, Colour4.White, Colour4.Aquamarine);
154153
sprite.Commands.AddFlipH(Easing.InOutQuad, 600, 600, true, true);
155154
sprite.Commands.AddFlipV(Easing.InOutQuad, 800, 900, true, false);
156155
sprite.Commands.AddRotation(Easing.OutSine, 1000, 1100, 0, 720);
@@ -185,8 +184,8 @@ public void TestCommands()
185184
Assert.That(colourCommand.Easing, Is.EqualTo(Easing.InCubic));
186185
Assert.That(colourCommand.StartTime, Is.EqualTo(400));
187186
Assert.That(colourCommand.EndTime, Is.EqualTo(500));
188-
Assert.That(colourCommand.StartValue, Is.EqualTo(Color4.White));
189-
Assert.That(colourCommand.EndValue, Is.EqualTo(Color4.Aquamarine));
187+
Assert.That(colourCommand.StartValue, Is.EqualTo(Colour4.White));
188+
Assert.That(colourCommand.EndValue, Is.EqualTo(Colour4.Aquamarine));
190189

191190
var flipHCommand = decodedSprite.Commands.FlipH.Single();
192191
Assert.That(flipHCommand.Easing, Is.EqualTo(Easing.InOutQuad));

0 commit comments

Comments
 (0)