1
0
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:
Huo Yaoyuan 2017-06-25 10:51:54 +08:00
parent be12f318e9
commit bfa275ad1c

View File

@ -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;