mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 07:43:00 +08:00
Delete ScoreInfo.HasReplay
as no longer needed
This commit is contained in:
parent
f931f4c324
commit
96d784e06b
@ -213,7 +213,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
OnlineID = hasOnlineId ? online_score_id : 0,
|
OnlineID = hasOnlineId ? online_score_id : 0,
|
||||||
Ruleset = new OsuRuleset().RulesetInfo,
|
Ruleset = new OsuRuleset().RulesetInfo,
|
||||||
BeatmapInfo = beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps.First(),
|
BeatmapInfo = beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps.First(),
|
||||||
Hash = replayAvailable ? "online" : string.Empty,
|
HasOnlineReplay = replayAvailable,
|
||||||
User = new APIUser
|
User = new APIUser
|
||||||
{
|
{
|
||||||
Id = 39828,
|
Id = 39828,
|
||||||
|
@ -22,8 +22,6 @@ namespace osu.Game.Scoring
|
|||||||
|
|
||||||
double Accuracy { get; }
|
double Accuracy { get; }
|
||||||
|
|
||||||
bool HasReplay { get; }
|
|
||||||
|
|
||||||
long LegacyOnlineID { get; }
|
long LegacyOnlineID { get; }
|
||||||
|
|
||||||
DateTimeOffset Date { get; }
|
DateTimeOffset Date { get; }
|
||||||
|
@ -94,8 +94,6 @@ namespace osu.Game.Scoring
|
|||||||
|
|
||||||
public double Accuracy { get; set; }
|
public double Accuracy { get; set; }
|
||||||
|
|
||||||
public bool HasReplay => !string.IsNullOrEmpty(Hash) || HasOnlineReplay;
|
|
||||||
|
|
||||||
[Ignored]
|
[Ignored]
|
||||||
public bool HasOnlineReplay { get; set; }
|
public bool HasOnlineReplay { get; set; }
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
if (State.Value == DownloadState.LocallyAvailable)
|
if (State.Value == DownloadState.LocallyAvailable)
|
||||||
return ReplayAvailability.Local;
|
return ReplayAvailability.Local;
|
||||||
|
|
||||||
if (Score.Value?.HasReplay == true)
|
if (Score.Value?.HasOnlineReplay == true)
|
||||||
return ReplayAvailability.Online;
|
return ReplayAvailability.Online;
|
||||||
|
|
||||||
return ReplayAvailability.NotAvailable;
|
return ReplayAvailability.NotAvailable;
|
||||||
|
Loading…
Reference in New Issue
Block a user