// 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 osu.Framework.Graphics; using osu.Framework.Localisation; namespace osu.Game.Screens.Ranking.Statistics { /// /// An item to be displayed in a row of statistics inside the results screen. /// public class StatisticItem { /// /// The name of this item. /// public readonly LocalisableString Name; /// /// A function returning the content to be displayed. /// public readonly Func CreateContent; /// /// Whether this item requires hit events. If true, will not be called if no hit events are available. /// public readonly bool RequiresHitEvents; /// /// Creates a new , to be displayed in the results screen. /// /// The name of the item. Can be to hide the item header. /// A function returning the content to be displayed. /// Whether this item requires hit events. If true, will not be called if no hit events are available. public StatisticItem(LocalisableString name, Func createContent, bool requiresHitEvents = false) { Name = name; RequiresHitEvents = requiresHitEvents; CreateContent = createContent; } } }