mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Formatting fixes
This commit is contained in:
@ -186,10 +186,13 @@ namespace osu.Game.Users
|
||||
{
|
||||
[Description("Keyboard")]
|
||||
Keyboard,
|
||||
|
||||
[Description("Mouse")]
|
||||
Mouse,
|
||||
|
||||
[Description("Tablet")]
|
||||
Tablet,
|
||||
|
||||
[Description("Touch Screen")]
|
||||
Touch,
|
||||
}
|
||||
|
@ -77,16 +77,25 @@ namespace osu.Game.Users
|
||||
[JsonProperty(@"a")]
|
||||
public int A;
|
||||
|
||||
public int GetForScoreRank(ScoreRank rank)
|
||||
public int this[ScoreRank rank]
|
||||
{
|
||||
switch (rank)
|
||||
get
|
||||
{
|
||||
case ScoreRank.XH: return SSPlus;
|
||||
case ScoreRank.X: return SS;
|
||||
case ScoreRank.SH: return SPlus;
|
||||
case ScoreRank.S: return S;
|
||||
case ScoreRank.A: return A;
|
||||
default: throw new ArgumentException($"API does not return {rank.ToString()}");
|
||||
switch (rank)
|
||||
{
|
||||
case ScoreRank.XH:
|
||||
return SSPlus;
|
||||
case ScoreRank.X:
|
||||
return SS;
|
||||
case ScoreRank.SH:
|
||||
return SPlus;
|
||||
case ScoreRank.S:
|
||||
return S;
|
||||
case ScoreRank.A:
|
||||
return A;
|
||||
default:
|
||||
throw new ArgumentException($"API does not return {rank.ToString()}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user