mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:32:55 +08:00
Turn score ids into ulong
s
This commit is contained in:
parent
f1fa442287
commit
ba2ef424d4
@ -154,7 +154,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private int onlineID = 1;
|
private ulong onlineID = 1;
|
||||||
|
|
||||||
private APIScoresCollection createScores()
|
private APIScoresCollection createScores()
|
||||||
{
|
{
|
||||||
|
@ -81,12 +81,12 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
public int? LegacyTotalScore { get; set; }
|
public int? LegacyTotalScore { get; set; }
|
||||||
|
|
||||||
[JsonProperty("legacy_score_id")]
|
[JsonProperty("legacy_score_id")]
|
||||||
public uint? LegacyScoreId { get; set; }
|
public ulong? LegacyScoreId { get; set; }
|
||||||
|
|
||||||
#region osu-web API additions (not stored to database).
|
#region osu-web API additions (not stored to database).
|
||||||
|
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public long? ID { get; set; }
|
public ulong? ID { get; set; }
|
||||||
|
|
||||||
[JsonProperty("user")]
|
[JsonProperty("user")]
|
||||||
public APIUser? User { get; set; }
|
public APIUser? User { get; set; }
|
||||||
@ -190,6 +190,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
|
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
|
||||||
};
|
};
|
||||||
|
|
||||||
public long OnlineID => ID ?? -1;
|
public long OnlineID => (long?)ID ?? -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user