//------------------------------------------------------------------------------
//
// 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 EnergyDef : Bright.Config.BeanBase
{
public JSONNode json;
public EnergyDef(JSONNode _json)
{
{ if(!_json["Mag"].IsNumber) { throw new SerializationException(); } Mag = _json["Mag"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["ShopID"].IsNumber) { throw new SerializationException(); } ShopID = _json["ShopID"]; }
{ if(!_json["PackID"].IsNumber) { throw new SerializationException(); } PackID = _json["PackID"]; }
{ if(!_json["Energy"].IsNumber) { throw new SerializationException(); } Energy = _json["Energy"]; }
{ if(!_json["FishBuffEnergy"].IsNumber) { throw new SerializationException(); } FishBuffEnergy = _json["FishBuffEnergy"]; }
{ if(!_json["RetryCost"].IsNumber) { throw new SerializationException(); } RetryCost = _json["RetryCost"]; }
{ if(!_json["SupplyDrop"].IsNumber) { throw new SerializationException(); } SupplyDrop = _json["SupplyDrop"]; }
{ if(!_json["LuckMultipier"].IsNumber) { throw new SerializationException(); } LuckMultipier = _json["LuckMultipier"]; }
json = _json;
PostInit();
}
public EnergyDef(int Mag, string Icon, int ShopID, int PackID, int Energy, int FishBuffEnergy, int RetryCost, int SupplyDrop, float LuckMultipier )
{
this.Mag = Mag;
this.Icon = Icon;
this.ShopID = ShopID;
this.PackID = PackID;
this.Energy = Energy;
this.FishBuffEnergy = FishBuffEnergy;
this.RetryCost = RetryCost;
this.SupplyDrop = SupplyDrop;
this.LuckMultipier = LuckMultipier;
PostInit();
}
public static EnergyDef DeserializeEnergyDef(JSONNode _json)
{
return new EnergyDef(_json);
}
///
/// 体力倍率
///
public int Mag { get; private set; }
public string Icon { get; private set; }
///
/// 体力不足时,兑换弹窗高级挡位显示哪个
///
public int ShopID { get; private set; }
public int PackID { get; private set; }
///
/// ≥该值时,出现该倍率
如果是-1,则只能通过FishBuff解锁,默认锁定,解锁后需要特殊处理
///
public int Energy { get; private set; }
///
/// 处于超级体力倍率加成下,体力≥该值时,出现该倍率
如果Energy无法解锁当前倍率但FishBuffEnergy可以解锁则显示特殊外框
///
public int FishBuffEnergy { get; private set; }
///
/// 折扣率*100后向上取整
如果折扣率 = 0则不显示折扣标签
///
public int RetryCost { get; private set; }
///
/// 对应SupplyDrop表主键
///
public int SupplyDrop { get; private set; }
///
/// 影响 大类幸运值 和 鱼种幸运值
///
public float LuckMultipier { get; private set; }
public const int __ID__ = 1081379901;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Mag:" + Mag + ","
+ "Icon:" + Icon + ","
+ "ShopID:" + ShopID + ","
+ "PackID:" + PackID + ","
+ "Energy:" + Energy + ","
+ "FishBuffEnergy:" + FishBuffEnergy + ","
+ "RetryCost:" + RetryCost + ","
+ "SupplyDrop:" + SupplyDrop + ","
+ "LuckMultipier:" + LuckMultipier + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}