mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Change some small classes to struct to avoid potential null check.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user