//------------------------------------------------------------------------------ // // 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 { public sealed partial class RodBasicStats : Bright.Config.BeanBase { public JSONNode json; public RodBasicStats(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["DisplayOrder"].IsNumber) { throw new SerializationException(); } DisplayOrder = _json["DisplayOrder"]; } { if(!_json["Title"]["key"].IsString) { throw new SerializationException(); } Title_l10n_key = _json["Title"]["key"]; if(!_json["Title"]["text"].IsString) { throw new SerializationException(); } Title = _json["Title"]["text"]; } { if(!_json["Desc"]["key"].IsString) { throw new SerializationException(); } Desc_l10n_key = _json["Desc"]["key"]; if(!_json["Desc"]["text"].IsString) { throw new SerializationException(); } Desc = _json["Desc"]["text"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { if(!_json["Min"].IsNumber) { throw new SerializationException(); } Min = _json["Min"]; } { if(!_json["Max"].IsNumber) { throw new SerializationException(); } Max = _json["Max"]; } json = _json; PostInit(); } public RodBasicStats(int ID, int DisplayOrder, string Title, string Desc, string Icon, int Min, int Max ) { this.ID = ID; this.DisplayOrder = DisplayOrder; this.Title = Title; this.Desc = Desc; this.Icon = Icon; this.Min = Min; this.Max = Max; PostInit(); } public static RodBasicStats DeserializeRodBasicStats(JSONNode _json) { return new RodBasicStats(_json); } /// /// 属性成长数组中的第几个元素 /// public int ID { get; private set; } /// /// 从顶点算,顺时针的展示顺序是 /// public int DisplayOrder { get; private set; } /// /// key /// public string Title { get; private set; } public string Title_l10n_key { get; } /// /// key /// public string Desc { get; private set; } public string Desc_l10n_key { get; } /// /// 显示图标 /// public string Icon { get; private set; } /// /// 根据该数值在雷达图上下限中的占比,决定进度条的多少
注意,伤害的雷达图比对数值,需要用伤害*攻速,用秒伤的去比对
连击伤害的雷达图,也需要用连击伤害*攻速 ///
public int Min { get; private set; } public int Max { get; private set; } public const int __ID__ = 410969624; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { Title = translator(Title_l10n_key, Title); Desc = translator(Desc_l10n_key, Desc); } public override string ToString() { return "{ " + "ID:" + ID + "," + "DisplayOrder:" + DisplayOrder + "," + "Title:" + Title + "," + "Desc:" + Desc + "," + "Icon:" + Icon + "," + "Min:" + Min + "," + "Max:" + Max + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }