// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using MessagePack; namespace osu.Game.Online.Metadata { [MessagePackObject] [Serializable] public class MultiplayerPlaylistItemStats { public const int TOTAL_SCORE_DISTRIBUTION_BINS = 13; /// /// The ID of the playlist item which these stats pertain to. /// [Key(0)] public long PlaylistItemID { get; set; } /// /// The count of scores with given total ranges in the room. /// The ranges are bracketed into bins, each of 100,000 score width. /// The last bin will contain count of all scores with total of 1,200,000 or larger. /// [Key(1)] public long[] TotalScoreDistribution { get; set; } = new long[TOTAL_SCORE_DISTRIBUTION_BINS]; /// /// The cumulative total of all passing scores (across all users) in the playlist so far. /// [Key(2)] public long TotalPlaylistScore { get; set; } [Key(3)] public ulong LastProcessedScoreID { get; set; } } }