mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Underscore + lowercase all keys
This commit is contained in:
16
osu.Game/IO/Serialization/KeyContractResolver.cs
Normal file
16
osu.Game/IO/Serialization/KeyContractResolver.cs
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using Humanizer;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace osu.Game.IO.Serialization
|
||||
{
|
||||
public class KeyContractResolver : DefaultContractResolver
|
||||
{
|
||||
protected override string ResolvePropertyName(string propertyName)
|
||||
{
|
||||
return propertyName.Underscore();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user