mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Switch to using an anonymous type for serialisation
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
a6766e64de
commit
9182f5dafb
@ -17,7 +17,7 @@ namespace osu.Game.Tournament
|
||||
public override void WriteJson(JsonWriter writer, Point value, JsonSerializer serializer)
|
||||
{
|
||||
// use the format of LaborSharp's Point since it is nicer.
|
||||
serializer.Serialize(writer, new SixLabors.ImageSharp.Point(value.X, value.Y));
|
||||
serializer.Serialize(writer, new { value.X, value.Y });
|
||||
}
|
||||
|
||||
public override Point ReadJson(JsonReader reader, Type objectType, Point existingValue, bool hasExistingValue, JsonSerializer serializer)
|
||||
|
Loading…
Reference in New Issue
Block a user