//------------------------------------------------------------------------------ // // 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 { /// /// 超级冲刺,支持Dash /// public sealed partial class SuperDash : FishSpSkillLabel { public SuperDash(JSONNode _json) : base(_json) { { var __json0 = _json["PosZInit"]; if(!__json0.IsArray) { throw new SerializationException(); } PosZInit = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PosZInit.Add(__v0); } } { if(!_json["PosZChange"].IsNumber) { throw new SerializationException(); } PosZChange = _json["PosZChange"]; } { if(!_json["DashSpeedChange"].IsNumber) { throw new SerializationException(); } DashSpeedChange = _json["DashSpeedChange"]; } { if(!_json["StrengthChange"].IsNumber) { throw new SerializationException(); } StrengthChange = _json["StrengthChange"]; } { if(!_json["ChangeMaxCount"].IsNumber) { throw new SerializationException(); } ChangeMaxCount = _json["ChangeMaxCount"]; } { if(!_json["NewSkillCountOffset"].IsNumber) { throw new SerializationException(); } NewSkillCountOffset = _json["NewSkillCountOffset"]; } { var __json0 = _json["DashPrepareTime"]; if(!__json0.IsArray) { throw new SerializationException(); } DashPrepareTime = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DashPrepareTime.Add(__v0); } } { if(!_json["NoChargeTime"].IsNumber) { throw new SerializationException(); } NoChargeTime = _json["NoChargeTime"]; } { if(!_json["NoChargeStamina"].IsNumber) { throw new SerializationException(); } NoChargeStamina = _json["NoChargeStamina"]; } { if(!_json["CameraFx"].IsString) { throw new SerializationException(); } CameraFx = _json["CameraFx"]; } { if(!_json["ChargeFx"].IsString) { throw new SerializationException(); } ChargeFx = _json["ChargeFx"]; } { if(!_json["DashFx"].IsString) { throw new SerializationException(); } DashFx = _json["DashFx"]; } { if(!_json["DashWaterFx"].IsString) { throw new SerializationException(); } DashWaterFx = _json["DashWaterFx"]; } { if(!_json["StruggleFx"].IsString) { throw new SerializationException(); } StruggleFx = _json["StruggleFx"]; } PostInit(); } public SuperDash(System.Collections.Generic.List PosZInit, float PosZChange, float DashSpeedChange, int StrengthChange, int ChangeMaxCount, int NewSkillCountOffset, System.Collections.Generic.List DashPrepareTime, float NoChargeTime, float NoChargeStamina, string CameraFx, string ChargeFx, string DashFx, string DashWaterFx, string StruggleFx ) : base() { this.PosZInit = PosZInit; this.PosZChange = PosZChange; this.DashSpeedChange = DashSpeedChange; this.StrengthChange = StrengthChange; this.ChangeMaxCount = ChangeMaxCount; this.NewSkillCountOffset = NewSkillCountOffset; this.DashPrepareTime = DashPrepareTime; this.NoChargeTime = NoChargeTime; this.NoChargeStamina = NoChargeStamina; this.CameraFx = CameraFx; this.ChargeFx = ChargeFx; this.DashFx = DashFx; this.DashWaterFx = DashWaterFx; this.StruggleFx = StruggleFx; PostInit(); } public static SuperDash DeserializeSuperDash(JSONNode _json) { return new SuperDash(_json); } /// /// 冲刺时z轴的初始随机范围 /// public System.Collections.Generic.List PosZInit { get; private set; } /// /// z轴随机范围的变化值,最小值和最小值 += 参数 * 累积冲刺次数 /// public float PosZChange { get; private set; } /// /// 冲刺速度的变化值,冲刺速度 *= (1 + 参数 * 累积冲刺次数) /// public float DashSpeedChange { get; private set; } /// /// 每次冲刺时,力量 += 参数*累积冲刺次数 /// public int StrengthChange { get; private set; } /// /// 累积冲刺次数上限,每次冲刺一次后加1 /// public int ChangeMaxCount { get; private set; } /// /// 重新释放技能后,累积冲刺次数 += 参数,不能超过上限,也不能小于0 /// public int NewSkillCountOffset { get; private set; } /// /// 分别对应不同Dash动画的准备阶段时长,这段时长过后,再进行冲刺 /// public System.Collections.Generic.List DashPrepareTime { get; private set; } /// /// 全力收线后的缓冲时间,这个时间内无法蓄力 /// public float NoChargeTime { get; private set; } /// /// 全力收线后的缓冲时间,这段时间内每秒疲劳额外变化 /// public float NoChargeStamina { get; private set; } /// /// 全程挂相机的特效,挂Camera上 /// public string CameraFx { get; private set; } /// /// 充能时特效,挂Root上 /// public string ChargeFx { get; private set; } /// /// 冲刺准备期间的特效,挂Root上 /// public string DashFx { get; private set; } /// /// 冲刺动画延迟之后的特效,持续到冲刺动画结束,挂Tail上 /// public string DashWaterFx { get; private set; } /// /// 被硬控時候的特效,挂Neck上 /// public string StruggleFx { get; private set; } public const int __ID__ = 1670626701; public override int GetTypeId() => __ID__; public override void Resolve(Dictionary _tables) { base.Resolve(_tables); PostResolve(); } public override void TranslateText(System.Func translator) { base.TranslateText(translator); } public override string ToString() { return "{ " + "PosZInit:" + Bright.Common.StringUtil.CollectionToString(PosZInit) + "," + "PosZChange:" + PosZChange + "," + "DashSpeedChange:" + DashSpeedChange + "," + "StrengthChange:" + StrengthChange + "," + "ChangeMaxCount:" + ChangeMaxCount + "," + "NewSkillCountOffset:" + NewSkillCountOffset + "," + "DashPrepareTime:" + Bright.Common.StringUtil.CollectionToString(DashPrepareTime) + "," + "NoChargeTime:" + NoChargeTime + "," + "NoChargeStamina:" + NoChargeStamina + "," + "CameraFx:" + CameraFx + "," + "ChargeFx:" + ChargeFx + "," + "DashFx:" + DashFx + "," + "DashWaterFx:" + DashWaterFx + "," + "StruggleFx:" + StruggleFx + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }