Skip to content

Commit 8a969fd

Browse files
committed
Remove usage of obsolete members
1 parent 0c23e50 commit 8a969fd

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Shane Woolcock. Licensed under the MIT Licence.
22
// See the LICENCE file in the repository root for full licence text.
33

4+
using System.Collections.Generic;
45
using osu.Game.Beatmaps;
56
using osu.Game.Rulesets.Mods;
67
using osu.Game.Rulesets.Rush.Objects;
@@ -12,13 +13,10 @@ namespace osu.Game.Rulesets.Rush.Mods
1213
{
1314
public class RushModAutoplay : ModAutoplay<RushHitObject>
1415
{
15-
public override Score CreateReplayScore(IBeatmap beatmap) => new Score
16+
public override Score CreateReplayScore(IBeatmap beatmap, IReadOnlyList<Mod> mods) => new Score
1617
{
17-
ScoreInfo = new ScoreInfo
18-
{
19-
User = new User { Username = "Autoplay" },
20-
},
21-
Replay = new RushAutoGenerator(beatmap).Generate(),
18+
ScoreInfo = new ScoreInfo { User = new User { Username = "Autoplay" } },
19+
Replay = new RushAutoGenerator(beatmap).Generate()
2220
};
2321
}
2422
}

osu.Game.Rulesets.Rush/Mods/RushModCinema.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Shane Woolcock. Licensed under the MIT Licence.
22
// See the LICENCE file in the repository root for full licence text.
33

4+
using System.Collections.Generic;
45
using osu.Game.Beatmaps;
56
using osu.Game.Rulesets.Mods;
67
using osu.Game.Rulesets.Rush.Objects;
@@ -12,7 +13,7 @@ namespace osu.Game.Rulesets.Rush.Mods
1213
{
1314
public class RushModCinema : ModCinema<RushHitObject>
1415
{
15-
public override Score CreateReplayScore(IBeatmap beatmap) => new Score
16+
public override Score CreateReplayScore(IBeatmap beatmap, IReadOnlyList<Mod> mods) => new Score
1617
{
1718
ScoreInfo = new ScoreInfo { User = new User { Username = "Autoplay" } },
1819
Replay = new RushAutoGenerator(beatmap).Generate()

0 commit comments

Comments
 (0)