//------------------------------------------------------------------------------
//
// 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 RodData : Bright.Config.BeanBase
{
public JSONNode json;
public RodData(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
{ var __json0 = _json["SkinList"]; if(!__json0.IsArray) { throw new SerializationException(); } SkinList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SkinList.Add(__v0); } }
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (RodType)_json["Type"].AsInt; }
{ if(!_json["ActionType"].IsNumber) { throw new SerializationException(); } ActionType = _json["ActionType"]; }
{ if(!_json["PowerType"].IsNumber) { throw new SerializationException(); } PowerType = _json["PowerType"]; }
{ if(!_json["Length"].IsNumber) { throw new SerializationException(); } Length = _json["Length"]; }
{ if(!_json["Action"].IsString) { throw new SerializationException(); } Action = _json["Action"]; }
{ if(!_json["Power"].IsString) { throw new SerializationException(); } Power = _json["Power"]; }
{ if(!_json["ReelingSpeed"].IsNumber) { throw new SerializationException(); } ReelingSpeed = _json["ReelingSpeed"]; }
{ if(!_json["Balance"].IsNumber) { throw new SerializationException(); } Balance = _json["Balance"]; }
{ if(!_json["PiercingAmp"].IsNumber) { throw new SerializationException(); } PiercingAmp = _json["PiercingAmp"]; }
{ if(!_json["PowerReelAmp"].IsNumber) { throw new SerializationException(); } PowerReelAmp = _json["PowerReelAmp"]; }
{ var __json0 = _json["InitialBasicStats"]; if(!__json0.IsArray) { throw new SerializationException(); } InitialBasicStats = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } InitialBasicStats.Add(__v0); } }
{ if(!_json["LevelupID"].IsNumber) { throw new SerializationException(); } LevelupID = _json["LevelupID"]; }
{ if(!_json["AscendID"].IsNumber) { throw new SerializationException(); } AscendID = _json["AscendID"]; }
{ if(!_json["DisplayDamageSpeed"].IsNumber) { throw new SerializationException(); } DisplayDamageSpeed = _json["DisplayDamageSpeed"]; }
{ var __json0 = _json["DamageMag"]; if(!__json0.IsArray) { throw new SerializationException(); } DamageMag = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DamageMag.Add(__v0); } }
{ var __json0 = _json["DamageInterval"]; if(!__json0.IsArray) { throw new SerializationException(); } DamageInterval = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DamageInterval.Add(__v0); } }
{ if(!_json["HoldThreshold"].IsNumber) { throw new SerializationException(); } HoldThreshold = _json["HoldThreshold"]; }
{ if(!_json["ComboTime"].IsNumber) { throw new SerializationException(); } ComboTime = _json["ComboTime"]; }
{ if(!_json["WaitingZone"].IsNumber) { throw new SerializationException(); } WaitingZone = _json["WaitingZone"]; }
{ var __json0 = _json["WaitingSequence"]; if(!__json0.IsArray) { throw new SerializationException(); } WaitingSequence = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } WaitingSequence.Add(__v0); } }
{ var __json0 = _json["DuelPowerLevel"]; if(!__json0.IsArray) { throw new SerializationException(); } DuelPowerLevel = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DuelPowerLevel.Add(__v0); } }
{ var __json0 = _json["DuelPowerAscend"]; if(!__json0.IsArray) { throw new SerializationException(); } DuelPowerAscend = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DuelPowerAscend.Add(__v0); } }
{ var __json0 = _json["GetFromFishingBox"]; if(!__json0.IsArray) { throw new SerializationException(); } GetFromFishingBox = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } GetFromFishingBox.Add(__v0); } }
json = _json;
PostInit();
}
public RodData(int ID, int Quality, System.Collections.Generic.List SkinList, RodType Type, int ActionType, int PowerType, float Length, string Action, string Power, int ReelingSpeed, int Balance, float PiercingAmp, float PowerReelAmp, System.Collections.Generic.List InitialBasicStats, int LevelupID, int AscendID, float DisplayDamageSpeed, System.Collections.Generic.List DamageMag, System.Collections.Generic.List DamageInterval, float HoldThreshold, float ComboTime, int WaitingZone, System.Collections.Generic.List WaitingSequence, System.Collections.Generic.List DuelPowerLevel, System.Collections.Generic.List DuelPowerAscend, System.Collections.Generic.List GetFromFishingBox )
{
this.ID = ID;
this.Quality = Quality;
this.SkinList = SkinList;
this.Type = Type;
this.ActionType = ActionType;
this.PowerType = PowerType;
this.Length = Length;
this.Action = Action;
this.Power = Power;
this.ReelingSpeed = ReelingSpeed;
this.Balance = Balance;
this.PiercingAmp = PiercingAmp;
this.PowerReelAmp = PowerReelAmp;
this.InitialBasicStats = InitialBasicStats;
this.LevelupID = LevelupID;
this.AscendID = AscendID;
this.DisplayDamageSpeed = DisplayDamageSpeed;
this.DamageMag = DamageMag;
this.DamageInterval = DamageInterval;
this.HoldThreshold = HoldThreshold;
this.ComboTime = ComboTime;
this.WaitingZone = WaitingZone;
this.WaitingSequence = WaitingSequence;
this.DuelPowerLevel = DuelPowerLevel;
this.DuelPowerAscend = DuelPowerAscend;
this.GetFromFishingBox = GetFromFishingBox;
PostInit();
}
public static RodData DeserializeRodData(JSONNode _json)
{
return new RodData(_json);
}
public int ID { get; private set; }
///
/// 2:蓝色
3:紫色
4:橙色
///
public int Quality { get; private set; }
///
/// 对应RodSkinData表主键
///
public System.Collections.Generic.List SkinList { get; private set; }
///
/// Spinning:纺车轮
Baitcasting:鼓轮和水滴轮
Centerpin:盘车轮
///
public RodType Type { get; private set; }
///
/// 0:慢竿
1:快竿
///
public int ActionType { get; private set; }
///
/// 0:软竿
1:硬竿
///
public int PowerType { get; private set; }
///
/// 单位米
1'=0.3048m
1''=0.0254m
///
public float Length { get; private set; }
///
/// S-MS-M-MF-FF
///
public string Action { get; private set; }
///
/// UUL-UL-L-ML-M-MH-H-XH-XXH
///
public string Power { get; private set; }
///
/// 和调性一起,影响张力条前进方式
///
public int ReelingSpeed { get; private set; }
///
/// 影响颤抖
///
public int Balance { get; private set; }
///
/// 完美刺鱼伤害 = 刺鱼倍率 * 伤害
///
public float PiercingAmp { get; private set; }
///
/// 全力收线伤害 = 全力收线倍率 * 伤害
///
public float PowerReelAmp { get; private set; }
///
/// 初始属性,1级时的表现
///
public System.Collections.Generic.List InitialBasicStats { get; private set; }
///
/// 对应RodLevelup主键
///
public int LevelupID { get; private set; }
///
/// 对应RodEnhancement主键
///
public int AscendID { get; private set; }
///
/// 展示用属性
///
public float DisplayDamageSpeed { get; private set; }
///
/// 每次跳字时,用伤害乘以这个倍率,期望必须是1
///
public System.Collections.Generic.List DamageMag { get; private set; }
///
/// 每次跳字的时间间隔,和伤害倍率一一对应
攻速 = 1/间隔的期望
///
public System.Collections.Generic.List DamageInterval { get; private set; }
///
/// 长按超过这个时间是,判断为长按行为,单位秒
///
public float HoldThreshold { get; private set; }
///
/// 连击持续时间,单位秒
///
public float ComboTime { get; private set; }
///
/// 对应RodWaitingZone主键
///
public int WaitingZone { get; private set; }
///
/// 对应RodWaitingZone主键
///
public System.Collections.Generic.List WaitingSequence { get; private set; }
///
/// 钓鱼对决和背包排序用
基础战力,在没有积分生效时的战力
///
public System.Collections.Generic.List DuelPowerLevel { get; private set; }
///
/// 钓鱼对决和背包排序用
基础战力,在没有积分生效时的战力
///
public System.Collections.Generic.List DuelPowerAscend { get; private set; }
///
/// 哪些地方可以获取该道具
///
public System.Collections.Generic.List GetFromFishingBox { get; private set; }
public const int __ID__ = -1261798927;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Quality:" + Quality + ","
+ "SkinList:" + Bright.Common.StringUtil.CollectionToString(SkinList) + ","
+ "Type:" + Type + ","
+ "ActionType:" + ActionType + ","
+ "PowerType:" + PowerType + ","
+ "Length:" + Length + ","
+ "Action:" + Action + ","
+ "Power:" + Power + ","
+ "ReelingSpeed:" + ReelingSpeed + ","
+ "Balance:" + Balance + ","
+ "PiercingAmp:" + PiercingAmp + ","
+ "PowerReelAmp:" + PowerReelAmp + ","
+ "InitialBasicStats:" + Bright.Common.StringUtil.CollectionToString(InitialBasicStats) + ","
+ "LevelupID:" + LevelupID + ","
+ "AscendID:" + AscendID + ","
+ "DisplayDamageSpeed:" + DisplayDamageSpeed + ","
+ "DamageMag:" + Bright.Common.StringUtil.CollectionToString(DamageMag) + ","
+ "DamageInterval:" + Bright.Common.StringUtil.CollectionToString(DamageInterval) + ","
+ "HoldThreshold:" + HoldThreshold + ","
+ "ComboTime:" + ComboTime + ","
+ "WaitingZone:" + WaitingZone + ","
+ "WaitingSequence:" + Bright.Common.StringUtil.CollectionToString(WaitingSequence) + ","
+ "DuelPowerLevel:" + Bright.Common.StringUtil.CollectionToString(DuelPowerLevel) + ","
+ "DuelPowerAscend:" + Bright.Common.StringUtil.CollectionToString(DuelPowerAscend) + ","
+ "GetFromFishingBox:" + Bright.Common.StringUtil.CollectionToString(GetFromFishingBox) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}