mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Add test coverage
This commit is contained in:
@ -9,7 +9,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
public class ReplayPlayerLoader : PlayerLoader
|
||||
{
|
||||
private readonly ScoreInfo scoreInfo;
|
||||
public readonly ScoreInfo Score;
|
||||
|
||||
public ReplayPlayerLoader(Score score)
|
||||
: base(() => new ReplayPlayer(score))
|
||||
@ -17,14 +17,14 @@ namespace osu.Game.Screens.Play
|
||||
if (score.Replay == null)
|
||||
throw new ArgumentException($"{nameof(score)} must have a non-null {nameof(score.Replay)}.", nameof(score));
|
||||
|
||||
scoreInfo = score.ScoreInfo;
|
||||
Score = score.ScoreInfo;
|
||||
}
|
||||
|
||||
public override void OnEntering(IScreen last)
|
||||
{
|
||||
// these will be reverted thanks to PlayerLoader's lease.
|
||||
Mods.Value = scoreInfo.Mods;
|
||||
Ruleset.Value = scoreInfo.Ruleset;
|
||||
Mods.Value = Score.Mods;
|
||||
Ruleset.Value = Score.Ruleset;
|
||||
|
||||
base.OnEntering(last);
|
||||
}
|
||||
|
Reference in New Issue
Block a user