//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
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);
}
///
/// 职业
///
public int Job { get; private set; }
///
/// 显示名
///
public string DisplayName { get; private set; }
///
/// 图标路径
///
public string IconPath { get; private set; }
public const int __ID__ = -1964089544;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Job:" + Job + ","
+ "DisplayName:" + DisplayName + ","
+ "IconPath:" + IconPath + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}