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
|
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
public enum BeatmapSetOnlineStatus
|
|
|
|
|
{
|
|
|
|
|
None = -3,
|
|
|
|
|
Graveyard = -2,
|
|
|
|
|
WIP = -1,
|
|
|
|
|
Pending = 0,
|
|
|
|
|
Ranked = 1,
|
|
|
|
|
Approved = 2,
|
|
|
|
|
Qualified = 3,
|
|
|
|
|
Loved = 4,
|
|
|
|
|
}
|
2021-05-01 03:40:16 +08:00
|
|
|
|
|
|
|
|
|
public static class BeatmapSetOnlineStatusExtensions
|
|
|
|
|
{
|
|
|
|
|
public static bool GrantsPerformancePoints(this BeatmapSetOnlineStatus status)
|
|
|
|
|
=> status == BeatmapSetOnlineStatus.Ranked || status == BeatmapSetOnlineStatus.Approved;
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|