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

71 lines
1.8 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 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);
}
/// <summary>
/// 所属部队
/// </summary>
public int Army { get; private set; }
/// <summary>
/// 显示名
/// </summary>
public string DisplayName { get; private set; }
public const int __ID__ = 1992192062;
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 "{ "
+ "Army:" + Army + ","
+ "DisplayName:" + DisplayName + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}