Allow for long online IDs and implement in ScoreInfo

This commit is contained in:
Dean Herbert
2021-10-29 11:48:36 +09:00
parent 7ab68525b4
commit 34d4715220
5 changed files with 8 additions and 6 deletions

View File

@ -19,7 +19,7 @@ using osu.Game.Utils;
namespace osu.Game.Scoring
{
public class ScoreInfo : IHasFiles<ScoreFileInfo>, IHasPrimaryKey, ISoftDelete, IEquatable<ScoreInfo>, IDeepCloneable<ScoreInfo>
public class ScoreInfo : IHasFiles<ScoreFileInfo>, IHasPrimaryKey, ISoftDelete, IEquatable<ScoreInfo>, IDeepCloneable<ScoreInfo>, IHasOnlineID<long>
{
public int ID { get; set; }
@ -271,5 +271,7 @@ namespace osu.Game.Scoring
return ReferenceEquals(this, other);
}
public long OnlineID => OnlineScoreID ?? -1;
}
}