mirror of
https://github.com/ppy/osu.git
synced 2025-01-22 12:32:55 +08:00
Rename ScoreInfo.{ -> Client}Version
This commit is contained in:
parent
a4baa0a716
commit
81bbdccee7
@ -196,7 +196,7 @@ namespace osu.Game.Tests.Scores.IO
|
|||||||
User = new APIUser { Username = "Test user" },
|
User = new APIUser { Username = "Test user" },
|
||||||
BeatmapInfo = beatmap.Beatmaps.First(),
|
BeatmapInfo = beatmap.Beatmaps.First(),
|
||||||
Ruleset = new OsuRuleset().RulesetInfo,
|
Ruleset = new OsuRuleset().RulesetInfo,
|
||||||
Version = "12345",
|
ClientVersion = "12345",
|
||||||
Mods = new Mod[] { new OsuModHardRock(), new OsuModDoubleTime() },
|
Mods = new Mod[] { new OsuModHardRock(), new OsuModDoubleTime() },
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ namespace osu.Game.Tests.Scores.IO
|
|||||||
|
|
||||||
Assert.IsTrue(imported.Mods.Any(m => m is OsuModHardRock));
|
Assert.IsTrue(imported.Mods.Any(m => m is OsuModHardRock));
|
||||||
Assert.IsTrue(imported.Mods.Any(m => m is OsuModDoubleTime));
|
Assert.IsTrue(imported.Mods.Any(m => m is OsuModDoubleTime));
|
||||||
Assert.That(imported.Version, Is.EqualTo(toImport.Version));
|
Assert.That(imported.ClientVersion, Is.EqualTo(toImport.ClientVersion));
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -156,7 +156,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
AddUntilStep("results displayed", () => Player.GetChildScreen() is ResultsScreen);
|
AddUntilStep("results displayed", () => Player.GetChildScreen() is ResultsScreen);
|
||||||
AddUntilStep("score in database", () => Realm.Run(r => r.Find<ScoreInfo>(Player.Score.ScoreInfo.ID) != null));
|
AddUntilStep("score in database", () => Realm.Run(r => r.Find<ScoreInfo>(Player.Score.ScoreInfo.ID) != null));
|
||||||
AddUntilStep("score has correct version", () => Realm.Run(r => r.Find<ScoreInfo>(Player.Score.ScoreInfo.ID)!.Version), () => Is.EqualTo(osu.Version));
|
AddUntilStep("score has correct version", () => Realm.Run(r => r.Find<ScoreInfo>(Player.Score.ScoreInfo.ID)!.ClientVersion), () => Is.EqualTo(osu.Version));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -50,7 +50,7 @@ namespace osu.Game.Scoring
|
|||||||
/// The version of the client this score was set using.
|
/// The version of the client this score was set using.
|
||||||
/// Sourced from <see cref="OsuGameBase.Version"/> at the point of score submission.
|
/// Sourced from <see cref="OsuGameBase.Version"/> at the point of score submission.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Version { get; set; } = string.Empty;
|
public string ClientVersion { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The <see cref="osu.Game.Beatmaps.BeatmapInfo.Hash"/> at the point in time when the score was set.
|
/// The <see cref="osu.Game.Beatmaps.BeatmapInfo.Hash"/> at the point in time when the score was set.
|
||||||
|
@ -1161,7 +1161,7 @@ namespace osu.Game.Screens.Play
|
|||||||
ScoreInfo = new ScoreInfo
|
ScoreInfo = new ScoreInfo
|
||||||
{
|
{
|
||||||
User = api.LocalUser.Value,
|
User = api.LocalUser.Value,
|
||||||
Version = game.Version,
|
ClientVersion = game.Version,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user