//------------------------------------------------------------------------------ // // 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 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); } /// /// 职业(对应enum表(暂定,后面尝试enum为主key)) /// public int Faction { get; private set; } public string DisplayName { get; private set; } /// /// 图标路径 /// public string IconPath { get; private set; } public const int __ID__ = 1415744953; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Faction:" + Faction + "," + "DisplayName:" + DisplayName + "," + "IconPath:" + IconPath + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }