mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
rename Frames
to ReplayFrames
This commit is contained in:
parent
a8eb3f95df
commit
e408d8ef0e
@ -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)),
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user