diff --git a/Interface/Base/IEntityConverter.cs b/Interface/Base/IEntityConverter.cs index c1fd4f9..ed1ecca 100644 --- a/Interface/Base/IEntityConverter.cs +++ b/Interface/Base/IEntityConverter.cs @@ -4,6 +4,6 @@ namespace Milimoe.FunGame.Core.Interface.Base { internal interface IEntityConverter { - public void ReadPropertyName(ref Utf8JsonReader reader, string propertyName, ref T? result); + public void ReadPropertyName(ref Utf8JsonReader reader, string propertyName, JsonSerializerOptions options, ref T? result); } } diff --git a/Library/Common/Architecture/BaseEntityConverter.cs b/Library/Common/Architecture/BaseEntityConverter.cs index e935b40..33309a9 100644 --- a/Library/Common/Architecture/BaseEntityConverter.cs +++ b/Library/Common/Architecture/BaseEntityConverter.cs @@ -17,13 +17,14 @@ namespace Milimoe.FunGame.Core.Library.Common.Architecture if (reader.TokenType == JsonTokenType.PropertyName) { string propertyName = reader.GetString() ?? ""; - ReadPropertyName(ref reader, propertyName, ref result); + reader.Read(); + ReadPropertyName(ref reader, propertyName, options, ref result); } } return result; } - public abstract void ReadPropertyName(ref Utf8JsonReader reader, string propertyName, ref T? result); + public abstract void ReadPropertyName(ref Utf8JsonReader reader, string propertyName, JsonSerializerOptions options, ref T? result); } }