Files
MinFt/Client/Assets/Scripts/Tables/RodBasicStats.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

109 lines
3.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
{
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);
}
/// <summary>
/// 属性成长数组中的第几个元素
/// </summary>
public int ID { get; private set; }
/// <summary>
/// 从顶点算,顺时针的展示顺序是
/// </summary>
public int DisplayOrder { get; private set; }
/// <summary>
/// key
/// </summary>
public string Title { get; private set; }
public string Title_l10n_key { get; }
/// <summary>
/// key
/// </summary>
public string Desc { get; private set; }
public string Desc_l10n_key { get; }
/// <summary>
/// 显示图标
/// </summary>
public string Icon { get; private set; }
/// <summary>
/// 根据该数值在雷达图上下限中的占比,决定进度条的多少<br/>注意,伤害的雷达图比对数值,需要用伤害*攻速,用秒伤的去比对<br/>连击伤害的雷达图,也需要用连击伤害*攻速
/// </summary>
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<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> 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();
}
}