Pull up data field in metadata.

This commit is contained in:
2022-11-17 23:31:44 +08:00
parent 5cdf10874e
commit 678e145271
4 changed files with 11 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
using Cryville.Common;
using Cryville.Common.Unity.UI;
using Newtonsoft.Json;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
@@ -100,9 +101,15 @@ namespace Cryville.Crtr.Browsing {
public class MetaInfo {
public string name { get; set; }
public string author { get; set; }
[JsonRequired]
public string data { get; set; }
}
public class SongMetaInfo {
public string name { get; set; }
public string author { get; set; }
}
public class ChartMeta : MetaInfo {
public MetaInfo song { get; set; }
public SongMetaInfo song { get; set; }
public float length { get; set; }
public string ruleset { get; set; }
public int note_count { get; set; }