Migrate to System.Text.Json in Live2D exporter

- [exp3.json] Fixed format of Blend values (there should be strings according to the official specification)
- Fixed BlendType enum
This commit is contained in:
VaDiM
2026-06-19 21:11:55 +03:00
parent 92602fc4a9
commit 7b7907f2eb
14 changed files with 188 additions and 105 deletions
@@ -1,10 +1,12 @@
// File Format Specifications
// https://github.com/Live2D/CubismSpecs/blob/master/FileFormats/motion3.json.md
using AssetStudio;
using CubismLive2DExtractor.CubismJsonConverters;
using System;
using System.Collections.Generic;
using System.Linq;
using AssetStudio;
using System.Text.Json.Serialization;
namespace CubismLive2DExtractor
{
@@ -36,6 +38,7 @@ namespace CubismLive2DExtractor
public string Id;
public float FadeInTime;
public float FadeOutTime;
[JsonConverter(typeof(MyJsonConverterFloatList))]
public List<float> Segments;
}