80 lines
2.3 KiB
C#
80 lines
2.3 KiB
C#
// <auto-generated>
|
|
// generated using ContentTool. DO NOT EDIT!
|
|
// </auto-generated>
|
|
|
|
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<NpcMetaDataMutable> 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<NpcMetaData> NpcMetaDataList;
|
|
public NpcMetaTable(NpcMetaTableMutable data)
|
|
{
|
|
if(data.NpcMetaDataList != null)
|
|
NpcMetaDataList = data.NpcMetaDataList.Select(x => new NpcMetaData(x)).ToList().AsReadOnly();
|
|
}
|
|
}
|
|
|
|
}
|