mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08:00
183b95cbc2
This variable is used at more than just a set level.
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
// 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.
|
|
|
|
using osu.Framework.Localisation;
|
|
using osu.Game.Resources.Localisation.Web;
|
|
|
|
namespace osu.Game.Beatmaps
|
|
{
|
|
public enum BeatmapOnlineStatus
|
|
{
|
|
None = -3,
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusGraveyard))]
|
|
Graveyard = -2,
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusWip))]
|
|
WIP = -1,
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusPending))]
|
|
Pending = 0,
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusRanked))]
|
|
Ranked = 1,
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusApproved))]
|
|
Approved = 2,
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusQualified))]
|
|
Qualified = 3,
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusLoved))]
|
|
Loved = 4,
|
|
}
|
|
|
|
public static class BeatmapSetOnlineStatusExtensions
|
|
{
|
|
public static bool GrantsPerformancePoints(this BeatmapOnlineStatus status)
|
|
=> status == BeatmapOnlineStatus.Ranked || status == BeatmapOnlineStatus.Approved;
|
|
}
|
|
}
|