Files
caliverse_server/ServerCommon/MetaAssets/MetaTable/NPCGeneralData.cs
2025-05-01 07:20:41 +09:00

103 lines
3.6 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 NPCGeneralMetaDataMutable
{
[JsonProperty("Npc_id")]
public int Npc_id { get; set; }
[JsonProperty("Language")]
public LanguageType Language { get; set; }
[JsonProperty("Name")]
public string Name { get; set; }
[JsonProperty("Title")]
public string Title { get; set; }
[JsonProperty("Description")]
public string Description { get; set; }
[JsonProperty("WorldScenario")]
public string WorldScenario { get; set; }
[JsonProperty("FirstMes")]
public string FirstMes { get; set; }
[JsonProperty("ShortDesc")]
public string ShortDesc { get; set; }
[JsonProperty("Tags")]
public IList<int> Tags { get; set; }
[JsonProperty("SocialAction_default")]
public int SocialAction_default { get; set; }
[JsonProperty("SocialAction_habit")]
public IList<int> SocialAction_habit { get; set; }
[JsonProperty("SocialAction_inaction")]
public IList<int> SocialAction_inaction { get; set; }
[JsonProperty("Gender")]
public EGenderType Gender { get; set; }
}
public partial class NPCGeneralMetaTableMutable
{
[JsonProperty("NPCGeneralMetaDataList")]
public IList<NPCGeneralMetaDataMutable> NPCGeneralMetaDataList { get; set; }
}
//////////////////////////////
// readonly class
//////////////////////////////
public partial class NPCGeneralMetaData
{
public readonly int Npc_id;
public readonly LanguageType Language;
public readonly string Name;
public readonly string Title;
public readonly string Description;
public readonly string WorldScenario;
public readonly string FirstMes;
public readonly string ShortDesc;
public readonly IReadOnlyList<int> Tags;
public readonly int SocialAction_default;
public readonly IReadOnlyList<int> SocialAction_habit;
public readonly IReadOnlyList<int> SocialAction_inaction;
public readonly EGenderType Gender;
public NPCGeneralMetaData(NPCGeneralMetaDataMutable data)
{
Npc_id = data.Npc_id;
Language = data.Language;
Name = data.Name;
Title = data.Title;
Description = data.Description;
WorldScenario = data.WorldScenario;
FirstMes = data.FirstMes;
ShortDesc = data.ShortDesc;
if(data.Tags != null)
Tags = data.Tags.ToList().AsReadOnly();
SocialAction_default = data.SocialAction_default;
if(data.SocialAction_habit != null)
SocialAction_habit = data.SocialAction_habit.ToList().AsReadOnly();
if(data.SocialAction_inaction != null)
SocialAction_inaction = data.SocialAction_inaction.ToList().AsReadOnly();
Gender = data.Gender;
}
}
public partial class NPCGeneralMetaTable
{
public readonly IReadOnlyList<NPCGeneralMetaData> NPCGeneralMetaDataList;
public NPCGeneralMetaTable(NPCGeneralMetaTableMutable data)
{
if(data.NPCGeneralMetaDataList != null)
NPCGeneralMetaDataList = data.NPCGeneralMetaDataList.Select(x => new NPCGeneralMetaData(x)).ToList().AsReadOnly();
}
}
}