// // generated using ContentTool. DO NOT EDIT! // using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Collections.ObjectModel; using Newtonsoft.Json.Converters; using Newtonsoft.Json; namespace MetaAssets { #pragma warning disable public partial class NpcMetaDataMutable { [JsonProperty("npc_id")] public int npc_id { get; set; } [JsonProperty("name")] public string name { get; set; } [JsonProperty("Gender")] public EGenderType Gender { get; set; } [JsonProperty("NpcTitle")] public string NpcTitle { get; set; } [JsonProperty("UGQ")] public bool UGQ { get; set; } [JsonProperty("UGQmap_x")] public int UGQmap_x { get; set; } [JsonProperty("UGQmap_y")] public int UGQmap_y { get; set; } [JsonProperty("UGQmap_z")] public int UGQmap_z { get; set; } } public partial class NpcMetaTableMutable { [JsonProperty("NpcMetaDataList")] public IList NpcMetaDataList { get; set; } } ////////////////////////////// // readonly class ////////////////////////////// public partial class NpcMetaData { public readonly int npc_id; public readonly string name; public readonly EGenderType Gender; public readonly string NpcTitle; public readonly bool UGQ; public readonly int UGQmap_x; public readonly int UGQmap_y; public readonly int UGQmap_z; public NpcMetaData(NpcMetaDataMutable data) { npc_id = data.npc_id; name = data.name; Gender = data.Gender; NpcTitle = data.NpcTitle; UGQ = data.UGQ; UGQmap_x = data.UGQmap_x; UGQmap_y = data.UGQmap_y; UGQmap_z = data.UGQmap_z; } } public partial class NpcMetaTable { public readonly IReadOnlyList NpcMetaDataList; public NpcMetaTable(NpcMetaTableMutable data) { if(data.NpcMetaDataList != null) NpcMetaDataList = data.NpcMetaDataList.Select(x => new NpcMetaData(x)).ToList().AsReadOnly(); } } }