//------------------------------------------------------------------------------
//
// 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 DataArmyAttri : Bright.Config.BeanBase
{
public DataArmyAttri(JSONNode _json)
{
{ if(!_json["Army"].IsNumber) { throw new SerializationException(); } Army = _json["Army"]; }
{ if(!_json["DisplayName"].IsString) { throw new SerializationException(); } DisplayName = _json["DisplayName"]; }
PostInit();
}
public DataArmyAttri(int Army, string DisplayName )
{
this.Army = Army;
this.DisplayName = DisplayName;
PostInit();
}
public static DataArmyAttri DeserializeDataArmyAttri(JSONNode _json)
{
return new CharacterCfg.DataArmyAttri(_json);
}
///
/// 所属部队
///
public int Army { get; private set; }
///
/// 显示名
///
public string DisplayName { get; private set; }
public const int __ID__ = 1992192062;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Army:" + Army + ","
+ "DisplayName:" + DisplayName + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}