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

75 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//------------------------------------------------------------------------------
// <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();
}
}