1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

rename Frames to ReplayFrames

This commit is contained in:
Nitrous 2022-01-29 23:19:51 +08:00
parent a8eb3f95df
commit e408d8ef0e
No known key found for this signature in database
GPG Key ID: 85EC4A6AE8F69D64
2 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
},
},
},
Frames = new List<ReplayFrame>
ReplayFrames = new List<ReplayFrame>
{
new OsuReplayFrame(500, new Vector2(200), OsuAction.LeftButton),
new OsuReplayFrame(501, new Vector2(200)),
@ -73,7 +73,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
},
},
},
Frames = new List<ReplayFrame>
ReplayFrames = new List<ReplayFrame>
{
new OsuReplayFrame(500, new Vector2(100), OsuAction.LeftButton),
new OsuReplayFrame(501, new Vector2(100)),
@ -108,7 +108,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
},
},
},
Frames = new List<ReplayFrame>
ReplayFrames = new List<ReplayFrame>
{
new OsuReplayFrame(500, new Vector2(100), OsuAction.LeftButton),
new OsuReplayFrame(501, new Vector2(100)),
@ -142,7 +142,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
}
}
},
Frames = new List<ReplayFrame>
ReplayFrames = new List<ReplayFrame>
{
new OsuReplayFrame(500, new Vector2(100), OsuAction.LeftButton),
new OsuReplayFrame(501, new Vector2(100)),

View File

@ -72,14 +72,14 @@ namespace osu.Game.Tests.Visual
protected override void PrepareReplay()
{
if (currentTestData.Autoplay && currentTestData.Frames?.Count > 0)
throw new InvalidOperationException(@$"{nameof(ModTestData.Autoplay)} must be false when {nameof(ModTestData.Frames)} is specified.");
if (currentTestData.Autoplay && currentTestData.ReplayFrames?.Count > 0)
throw new InvalidOperationException(@$"{nameof(ModTestData.Autoplay)} must be false when {nameof(ModTestData.ReplayFrames)} is specified.");
if (currentTestData.Frames != null)
if (currentTestData.ReplayFrames != null)
{
DrawableRuleset?.SetReplayScore(new Score
{
Replay = new Replay { Frames = currentTestData.Frames },
Replay = new Replay { Frames = currentTestData.ReplayFrames },
ScoreInfo = new ScoreInfo { User = new APIUser { Username = @"Test" } },
});
}
@ -99,7 +99,7 @@ namespace osu.Game.Tests.Visual
/// The frames to use for replay. <see cref="Autoplay"/> must be set to false.
/// </summary>
[CanBeNull]
public List<ReplayFrame> Frames;
public List<ReplayFrame> ReplayFrames;
/// <summary>
/// The beatmap for this test case.