mirror of https://github.com/ppy/osu
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 @@ internal class JsonPointConverter : JsonConverter<Point>
|
|||
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