2019-01-24 16:43:03 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-04-13 17:19:50 +08:00
2020-09-03 16:51:54 +08:00
using System ;
using osu.Framework.Graphics ;
2019-03-27 18:29:27 +08:00
using osu.Framework.Graphics.Sprites ;
2020-09-04 11:55:39 +08:00
using osuTK ;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Beatmaps
{
public class BeatmapStatistic
{
2020-09-03 16:51:54 +08:00
[Obsolete("Use CreateIcon instead")] // can be removed 20210203
public IconUsage Icon = FontAwesome . Regular . QuestionCircle ;
/// <summary>
2020-09-04 14:01:32 +08:00
/// A function to create the icon for display purposes. Use default icons available via <see cref="BeatmapStatisticIcon"/> whenever possible for conformity.
2020-09-03 16:51:54 +08:00
/// </summary>
public Func < Drawable > CreateIcon ;
2018-04-13 17:19:50 +08:00
public string Content ;
public string Name ;
2020-09-03 16:51:54 +08:00
public BeatmapStatistic ( )
{
#pragma warning disable 618
2020-09-04 12:05:39 +08:00
CreateIcon = ( ) = > new SpriteIcon { Icon = Icon , Scale = new Vector2 ( 0.7f ) } ;
2020-09-03 16:51:54 +08:00
#pragma warning restore 618
}
2018-04-13 17:19:50 +08:00
}
}