75 lines
2.2 KiB
C#
75 lines
2.2 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 DataFactionAttri : Bright.Config.BeanBase
|
||
{
|
||
public DataFactionAttri(JSONNode _json)
|
||
{
|
||
{ if(!_json["Faction"].IsNumber) { throw new SerializationException(); } Faction = _json["Faction"]; }
|
||
{ if(!_json["DisplayName"].IsString) { throw new SerializationException(); } DisplayName = _json["DisplayName"]; }
|
||
{ if(!_json["IconPath"].IsString) { throw new SerializationException(); } IconPath = _json["IconPath"]; }
|
||
PostInit();
|
||
}
|
||
|
||
public DataFactionAttri(int Faction, string DisplayName, string IconPath )
|
||
{
|
||
this.Faction = Faction;
|
||
this.DisplayName = DisplayName;
|
||
this.IconPath = IconPath;
|
||
PostInit();
|
||
}
|
||
|
||
public static DataFactionAttri DeserializeDataFactionAttri(JSONNode _json)
|
||
{
|
||
return new CharacterCfg.DataFactionAttri(_json);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 职业(对应enum表(暂定,后面尝试enum为主key))
|
||
/// </summary>
|
||
public int Faction { get; private set; }
|
||
public string DisplayName { get; private set; }
|
||
/// <summary>
|
||
/// 图标路径
|
||
/// </summary>
|
||
public string IconPath { get; private set; }
|
||
|
||
public const int __ID__ = 1415744953;
|
||
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 "{ "
|
||
+ "Faction:" + Faction + ","
|
||
+ "DisplayName:" + DisplayName + ","
|
||
+ "IconPath:" + IconPath + ","
|
||
+ "}";
|
||
}
|
||
|
||
partial void PostInit();
|
||
partial void PostResolve();
|
||
}
|
||
}
|