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
|
|
|
|
|
2021-07-21 19:15:07 +08:00
|
|
|
|
using osu.Framework.Localisation;
|
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
|
{
|
2021-11-24 17:42:47 +08:00
|
|
|
|
public enum BeatmapOnlineStatus
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
|
|
|
|
None = -3,
|
2021-07-31 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusGraveyard))]
|
2018-04-13 17:19:50 +08:00
|
|
|
|
Graveyard = -2,
|
2021-07-31 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusWip))]
|
2018-04-13 17:19:50 +08:00
|
|
|
|
WIP = -1,
|
2021-07-31 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusPending))]
|
2018-04-13 17:19:50 +08:00
|
|
|
|
Pending = 0,
|
2021-07-31 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusRanked))]
|
2018-04-13 17:19:50 +08:00
|
|
|
|
Ranked = 1,
|
2021-07-31 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusApproved))]
|
2018-04-13 17:19:50 +08:00
|
|
|
|
Approved = 2,
|
2021-07-31 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusQualified))]
|
2018-04-13 17:19:50 +08:00
|
|
|
|
Qualified = 3,
|
2021-07-31 06:38:54 +08:00
|
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(BeatmapsetsStrings), nameof(BeatmapsetsStrings.ShowStatusLoved))]
|
2018-04-13 17:19:50 +08:00
|
|
|
|
Loved = 4,
|
|
|
|
|
}
|
2021-05-01 03:40:16 +08:00
|
|
|
|
|
|
|
|
|
public static class BeatmapSetOnlineStatusExtensions
|
|
|
|
|
{
|
2021-11-24 17:42:47 +08:00
|
|
|
|
public static bool GrantsPerformancePoints(this BeatmapOnlineStatus status)
|
|
|
|
|
=> status == BeatmapOnlineStatus.Ranked || status == BeatmapOnlineStatus.Approved;
|
2021-05-01 03:40:16 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|