mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Change some small classes to struct to avoid potential null check.
This commit is contained in:
parent
be12f318e9
commit
bfa275ad1c
@ -10,7 +10,7 @@ namespace osu.Game.Users
|
||||
[JsonProperty(@"level")]
|
||||
public LevelInfo Level;
|
||||
|
||||
public class LevelInfo
|
||||
public struct LevelInfo
|
||||
{
|
||||
[JsonProperty(@"current")]
|
||||
public int Current;
|
||||
@ -49,7 +49,7 @@ namespace osu.Game.Users
|
||||
[JsonProperty(@"grade_counts")]
|
||||
public Grades GradesCount;
|
||||
|
||||
public class Grades
|
||||
public struct Grades
|
||||
{
|
||||
[JsonProperty(@"ss")]
|
||||
public int SS;
|
||||
|
Loading…
Reference in New Issue
Block a user