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

78 lines
2.1 KiB
C#

//------------------------------------------------------------------------------
// <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;
namespace cfg.CharacterCfg
{
public sealed partial class DataJobAttri : Bright.Config.BeanBase
{
public DataJobAttri(JSONNode _json)
{
{ if(!_json["Job"].IsNumber) { throw new SerializationException(); } Job = _json["Job"]; }
{ if(!_json["DisplayName"].IsString) { throw new SerializationException(); } DisplayName = _json["DisplayName"]; }
{ if(!_json["IconPath"].IsString) { throw new SerializationException(); } IconPath = _json["IconPath"]; }
PostInit();
}
public DataJobAttri(int Job, string DisplayName, string IconPath )
{
this.Job = Job;
this.DisplayName = DisplayName;
this.IconPath = IconPath;
PostInit();
}
public static DataJobAttri DeserializeDataJobAttri(JSONNode _json)
{
return new CharacterCfg.DataJobAttri(_json);
}
/// <summary>
/// 职业
/// </summary>
public int Job { get; private set; }
/// <summary>
/// 显示名
/// </summary>
public string DisplayName { get; private set; }
/// <summary>
/// 图标路径
/// </summary>
public string IconPath { get; private set; }
public const int __ID__ = -1964089544;
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 "{ "
+ "Job:" + Job + ","
+ "DisplayName:" + DisplayName + ","
+ "IconPath:" + IconPath + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}