mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Formatting fixes
This commit is contained in:
@ -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