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