RynthSuite/Tools/RynthCore.MonsterEditor/JsonContext.cs

10 lines
463 B
C#

using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace RynthCore.MonsterEditor;
[JsonSerializable(typeof(List<MonsterRule>))]
[JsonSerializable(typeof(EditorSettings))]
// Case-insensitive like the plugin's RynthAiJsonContext, which reads the same files.
[JsonSourceGenerationOptions(WriteIndented = true, IncludeFields = true, PropertyNameCaseInsensitive = true)]
internal partial class EditorJsonContext : JsonSerializerContext { }