1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Fix incorrect indentation

I used this for the o!f example.
This commit is contained in:
smoogipoo 2021-06-16 16:19:46 +09:00
parent 3c3ff8be0d
commit 6d6604e2f0

View File

@ -7,32 +7,32 @@ using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Overlays.BeatmapListing namespace osu.Game.Overlays.BeatmapListing
{ {
[LocalisableEnum(typeof(SearchPlayedEnumLocalisationMapper))] [LocalisableEnum(typeof(SearchPlayedEnumLocalisationMapper))]
public enum SearchPlayed public enum SearchPlayed
{
Any,
Played,
Unplayed
}
public class SearchPlayedEnumLocalisationMapper : EnumLocalisationMapper<SearchPlayed>
{
public override LocalisableString Map(SearchPlayed value)
{ {
switch (value) Any,
Played,
Unplayed
}
public class SearchPlayedEnumLocalisationMapper : EnumLocalisationMapper<SearchPlayed>
{
public override LocalisableString Map(SearchPlayed value)
{ {
case SearchPlayed.Any: switch (value)
return BeatmapsStrings.PlayedAny; {
case SearchPlayed.Any:
return BeatmapsStrings.PlayedAny;
case SearchPlayed.Played: case SearchPlayed.Played:
return BeatmapsStrings.PlayedPlayed; return BeatmapsStrings.PlayedPlayed;
case SearchPlayed.Unplayed: case SearchPlayed.Unplayed:
return BeatmapsStrings.PlayedUnplayed; return BeatmapsStrings.PlayedUnplayed;
default: default:
throw new ArgumentOutOfRangeException(nameof(value), value, null); throw new ArgumentOutOfRangeException(nameof(value), value, null);
}
} }
} }
} }
}