1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Turn score ids into ulongs

This commit is contained in:
Dan Balasescu 2022-09-09 11:30:36 +09:00
parent f1fa442287
commit ba2ef424d4
2 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ namespace osu.Game.Tests.Visual.Online
});
}
private int onlineID = 1;
private ulong onlineID = 1;
private APIScoresCollection createScores()
{

View File

@ -81,12 +81,12 @@ namespace osu.Game.Online.API.Requests.Responses
public int? LegacyTotalScore { get; set; }
[JsonProperty("legacy_score_id")]
public uint? LegacyScoreId { get; set; }
public ulong? LegacyScoreId { get; set; }
#region osu-web API additions (not stored to database).
[JsonProperty("id")]
public long? ID { get; set; }
public ulong? ID { get; set; }
[JsonProperty("user")]
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),
};
public long OnlineID => ID ?? -1;
public long OnlineID => (long?)ID ?? -1;
}
}