NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/CharacterCfg/DataCharacterSkin.cs

141 lines
5.3 KiB
C#
Raw Normal View History

2023-08-22 19:08:45 +08:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
2023-10-19 15:00:19 +08:00
namespace cfg.CharacterCfg
2023-08-22 19:08:45 +08:00
{
2023-10-19 15:00:19 +08:00
public sealed partial class DataCharacterSkin : Bright.Config.BeanBase
2023-08-22 19:08:45 +08:00
{
2023-10-19 15:00:19 +08:00
public DataCharacterSkin(JSONNode _json)
2023-08-22 19:08:45 +08:00
{
2023-10-19 15:00:19 +08:00
{ if(!_json["SkinID"].IsNumber) { throw new SerializationException(); } SkinID = _json["SkinID"]; }
2023-08-22 19:08:45 +08:00
{ if(!_json["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _json["RoleID"]; }
2023-10-19 15:00:19 +08:00
{ if(!_json["NameID"].IsString) { throw new SerializationException(); } NameID = _json["NameID"]; }
2023-08-22 19:08:45 +08:00
{ if(!_json["Name"].IsString) { throw new SerializationException(); } Name = _json["Name"]; }
{ if(!_json["NickName"].IsString) { throw new SerializationException(); } NickName = _json["NickName"]; }
{ if(!_json["Cultivate"].IsString) { throw new SerializationException(); } Cultivate = _json["Cultivate"]; }
{ if(!_json["Favorable"].IsString) { throw new SerializationException(); } Favorable = _json["Favorable"]; }
{ if(!_json["LevelUp"].IsString) { throw new SerializationException(); } LevelUp = _json["LevelUp"]; }
{ if(!_json["SelectCharacter"].IsString) { throw new SerializationException(); } SelectCharacter = _json["SelectCharacter"]; }
{ if(!_json["Poster"].IsString) { throw new SerializationException(); } Poster = _json["Poster"]; }
2023-10-19 15:00:19 +08:00
{ if(!_json["PrefabPath"].IsString) { throw new SerializationException(); } PrefabPath = _json["PrefabPath"]; }
{ if(!_json["DisplayPrefabPath"].IsString) { throw new SerializationException(); } DisplayPrefabPath = _json["DisplayPrefabPath"]; }
2023-08-22 19:08:45 +08:00
PostInit();
}
2023-10-19 15:00:19 +08:00
public DataCharacterSkin(int SkinID, int RoleID, string NameID, string Name, string NickName, string Cultivate, string Favorable, string LevelUp, string SelectCharacter, string Poster, string PrefabPath, string DisplayPrefabPath )
2023-08-22 19:08:45 +08:00
{
2023-10-19 15:00:19 +08:00
this.SkinID = SkinID;
2023-08-22 19:08:45 +08:00
this.RoleID = RoleID;
2023-10-19 15:00:19 +08:00
this.NameID = NameID;
2023-08-22 19:08:45 +08:00
this.Name = Name;
this.NickName = NickName;
this.Cultivate = Cultivate;
this.Favorable = Favorable;
this.LevelUp = LevelUp;
this.SelectCharacter = SelectCharacter;
this.Poster = Poster;
2023-10-19 15:00:19 +08:00
this.PrefabPath = PrefabPath;
this.DisplayPrefabPath = DisplayPrefabPath;
2023-08-22 19:08:45 +08:00
PostInit();
}
2023-10-19 15:00:19 +08:00
public static DataCharacterSkin DeserializeDataCharacterSkin(JSONNode _json)
2023-08-22 19:08:45 +08:00
{
2023-10-19 15:00:19 +08:00
return new CharacterCfg.DataCharacterSkin(_json);
2023-08-22 19:08:45 +08:00
}
/// <summary>
2023-10-19 15:00:19 +08:00
/// 皮肤索引ID
/// </summary>
public int SkinID { get; private set; }
/// <summary>
/// 配置id
2023-08-22 19:08:45 +08:00
/// </summary>
public int RoleID { get; private set; }
/// <summary>
2023-10-19 15:00:19 +08:00
/// 角色ID(策划用)
/// </summary>
public string NameID { get; private set; }
/// <summary>
2023-08-22 19:08:45 +08:00
/// 角色名
/// </summary>
public string Name { get; private set; }
/// <summary>
/// 外号
/// </summary>
public string NickName { get; private set; }
/// <summary>
/// Cultivate(养成主界面)Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/Cutivate
/// </summary>
public string Cultivate { get; private set; }
/// <summary>
/// Favorable(好感度界面)Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/Favorate
/// </summary>
public string Favorable { get; private set; }
/// <summary>
/// LevelUp(考核、进阶、人物)所有升级界面 Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/LevelUp
/// </summary>
public string LevelUp { get; private set; }
/// <summary>
/// SelectCharacter(干员一览界面)Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/Select
/// </summary>
public string SelectCharacter { get; private set; }
/// <summary>
/// Poster(立绘查看界面)Assets/Art/UI/Texture/Poster/Poster_Default
/// </summary>
public string Poster { get; private set; }
2023-10-19 15:00:19 +08:00
/// <summary>
/// 3d预制件位置
/// </summary>
public string PrefabPath { get; private set; }
/// <summary>
/// 非战斗内用的prefab路径
/// </summary>
public string DisplayPrefabPath { get; private set; }
2023-08-22 19:08:45 +08:00
2023-10-19 15:00:19 +08:00
public const int __ID__ = -1982049783;
2023-08-22 19:08:45 +08:00
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
}
public override string ToString()
{
return "{ "
2023-10-19 15:00:19 +08:00
+ "SkinID:" + SkinID + ","
2023-08-22 19:08:45 +08:00
+ "RoleID:" + RoleID + ","
2023-10-19 15:00:19 +08:00
+ "NameID:" + NameID + ","
2023-08-22 19:08:45 +08:00
+ "Name:" + Name + ","
+ "NickName:" + NickName + ","
+ "Cultivate:" + Cultivate + ","
+ "Favorable:" + Favorable + ","
+ "LevelUp:" + LevelUp + ","
+ "SelectCharacter:" + SelectCharacter + ","
+ "Poster:" + Poster + ","
2023-10-19 15:00:19 +08:00
+ "PrefabPath:" + PrefabPath + ","
+ "DisplayPrefabPath:" + DisplayPrefabPath + ","
2023-08-22 19:08:45 +08:00
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}