//------------------------------------------------------------------------------ // // 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 RodOperatingStats : Bright.Config.BeanBase { public JSONNode json; public RodOperatingStats(JSONNode _json) { { var __json0 = _json["MaxDrawingHP"]; if(!__json0.IsArray) { throw new SerializationException(); } MaxDrawingHP = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MaxDrawingHP.Add(__v0); } } { var __json0 = _json["MinDrawingHP"]; if(!__json0.IsArray) { throw new SerializationException(); } MinDrawingHP = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MinDrawingHP.Add(__v0); } } { var __json0 = _json["BarIncrease_Fast"]; if(!__json0.IsArray) { throw new SerializationException(); } BarIncreaseFast = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarIncreaseFast.Add(__v0); } } { var __json0 = _json["BarDecrease_Fast"]; if(!__json0.IsArray) { throw new SerializationException(); } BarDecreaseFast = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarDecreaseFast.Add(__v0); } } { var __json0 = _json["BarIncrease_Slow"]; if(!__json0.IsArray) { throw new SerializationException(); } BarIncreaseSlow = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarIncreaseSlow.Add(__v0); } } { var __json0 = _json["BarDecrease_Slow"]; if(!__json0.IsArray) { throw new SerializationException(); } BarDecreaseSlow = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarDecreaseSlow.Add(__v0); } } { var __json0 = _json["MinDamp_Hard"]; if(!__json0.IsArray) { throw new SerializationException(); } MinDampHard = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MinDampHard.Add(__v0); } } { var __json0 = _json["MaxDamp_Hard"]; if(!__json0.IsArray) { throw new SerializationException(); } MaxDampHard = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MaxDampHard.Add(__v0); } } { var __json0 = _json["MinDamp_Soft"]; if(!__json0.IsArray) { throw new SerializationException(); } MinDampSoft = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MinDampSoft.Add(__v0); } } { var __json0 = _json["MaxDamp_Soft"]; if(!__json0.IsArray) { throw new SerializationException(); } MaxDampSoft = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MaxDampSoft.Add(__v0); } } { var __json0 = _json["ComboInc"]; if(!__json0.IsArray) { throw new SerializationException(); } ComboInc = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ComboInc.Add(__v0); } } { var __json0 = _json["ComboZoneScale"]; if(!__json0.IsArray) { throw new SerializationException(); } ComboZoneScale = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ComboZoneScale.Add(__v0); } } { var __json0 = _json["AutoMaxcomboProb"]; if(!__json0.IsArray) { throw new SerializationException(); } AutoMaxcomboProb = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AutoMaxcomboProb.Add(__v0); } } { var __json0 = _json["ComboBarIncAmp"]; if(!__json0.IsArray) { throw new SerializationException(); } ComboBarIncAmp = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ComboBarIncAmp.Add(__v0); } } { var __json0 = _json["ComboBarDecAmp"]; if(!__json0.IsArray) { throw new SerializationException(); } ComboBarDecAmp = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ComboBarDecAmp.Add(__v0); } } { var __json0 = _json["BarShakeBounceRand"]; if(!__json0.IsArray) { throw new SerializationException(); } BarShakeBounceRand = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarShakeBounceRand.Add(__v0); } } { var __json0 = _json["BarShakeMinAmp"]; if(!__json0.IsArray) { throw new SerializationException(); } BarShakeMinAmp = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarShakeMinAmp.Add(__v0); } } { var __json0 = _json["BarShakeMaxAmp"]; if(!__json0.IsArray) { throw new SerializationException(); } BarShakeMaxAmp = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarShakeMaxAmp.Add(__v0); } } json = _json; PostInit(); } public RodOperatingStats(System.Collections.Generic.List MaxDrawingHP, System.Collections.Generic.List MinDrawingHP, System.Collections.Generic.List BarIncrease_Fast, System.Collections.Generic.List BarDecrease_Fast, System.Collections.Generic.List BarIncrease_Slow, System.Collections.Generic.List BarDecrease_Slow, System.Collections.Generic.List MinDamp_Hard, System.Collections.Generic.List MaxDamp_Hard, System.Collections.Generic.List MinDamp_Soft, System.Collections.Generic.List MaxDamp_Soft, System.Collections.Generic.List ComboInc, System.Collections.Generic.List ComboZoneScale, System.Collections.Generic.List AutoMaxcomboProb, System.Collections.Generic.List ComboBarIncAmp, System.Collections.Generic.List ComboBarDecAmp, System.Collections.Generic.List BarShakeBounceRand, System.Collections.Generic.List BarShakeMinAmp, System.Collections.Generic.List BarShakeMaxAmp ) { this.MaxDrawingHP = MaxDrawingHP; this.MinDrawingHP = MinDrawingHP; this.BarIncreaseFast = BarIncrease_Fast; this.BarDecreaseFast = BarDecrease_Fast; this.BarIncreaseSlow = BarIncrease_Slow; this.BarDecreaseSlow = BarDecrease_Slow; this.MinDampHard = MinDamp_Hard; this.MaxDampHard = MaxDamp_Hard; this.MinDampSoft = MinDamp_Soft; this.MaxDampSoft = MaxDamp_Soft; this.ComboInc = ComboInc; this.ComboZoneScale = ComboZoneScale; this.AutoMaxcomboProb = AutoMaxcomboProb; this.ComboBarIncAmp = ComboBarIncAmp; this.ComboBarDecAmp = ComboBarDecAmp; this.BarShakeBounceRand = BarShakeBounceRand; this.BarShakeMinAmp = BarShakeMinAmp; this.BarShakeMaxAmp = BarShakeMaxAmp; PostInit(); } public static RodOperatingStats DeserializeRodOperatingStats(JSONNode _json) { return new RodOperatingStats(_json); } /// /// 连击区时,每次鱼的掉血跳字 /// public System.Collections.Generic.List MaxDrawingHP { get; private set; } /// /// 进度条最左侧伤害系数 /// public System.Collections.Generic.List MinDrawingHP { get; private set; } /// /// 按下时,每秒前进的百分比 /// public System.Collections.Generic.List BarIncreaseFast { get; private set; } /// /// 松手时,每秒后退的百分比 /// public System.Collections.Generic.List BarDecreaseFast { get; private set; } /// /// 按下时,每秒前进的百分比 /// public System.Collections.Generic.List BarIncreaseSlow { get; private set; } /// /// 松手时,每秒后退的百分比 /// public System.Collections.Generic.List BarDecreaseSlow { get; private set; } /// /// 进度条最左时,进度条前进系数 /// public System.Collections.Generic.List MinDampHard { get; private set; } /// /// 进度条最右时,进度条前进系数 /// public System.Collections.Generic.List MaxDampHard { get; private set; } /// /// 进度条最左时,进度条前进系数 /// public System.Collections.Generic.List MinDampSoft { get; private set; } /// /// 进度条最右时,进度条前进系数 /// public System.Collections.Generic.List MaxDampSoft { get; private set; } /// /// 处于连击区时,每秒增加的百分比进度 /// public System.Collections.Generic.List ComboInc { get; private set; } /// /// 连击区大小占进度条百分比 /// public System.Collections.Generic.List ComboZoneScale { get; private set; } /// /// 自动钓鱼状态下,在非全力收线模式下,每间隔ComboTime时间判定一次,固定加上这么多的进度,满了之后自动释放全力收线 /// public System.Collections.Generic.List AutoMaxcomboProb { get; private set; } /// /// 连击状态下,进度条前进的额外参数 /// public System.Collections.Generic.List ComboBarIncAmp { get; private set; } /// /// 连击状态下,进度条后退的额外参数 /// public System.Collections.Generic.List ComboBarDecAmp { get; private set; } /// /// 颤抖反弹数值随机参数 /// public System.Collections.Generic.List BarShakeBounceRand { get; private set; } /// /// 颤抖动画最小值 /// public System.Collections.Generic.List BarShakeMinAmp { get; private set; } /// /// 颤抖动画最大值 /// public System.Collections.Generic.List BarShakeMaxAmp { get; private set; } public const int __ID__ = -340148891; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "MaxDrawingHP:" + Bright.Common.StringUtil.CollectionToString(MaxDrawingHP) + "," + "MinDrawingHP:" + Bright.Common.StringUtil.CollectionToString(MinDrawingHP) + "," + "BarIncreaseFast:" + Bright.Common.StringUtil.CollectionToString(BarIncreaseFast) + "," + "BarDecreaseFast:" + Bright.Common.StringUtil.CollectionToString(BarDecreaseFast) + "," + "BarIncreaseSlow:" + Bright.Common.StringUtil.CollectionToString(BarIncreaseSlow) + "," + "BarDecreaseSlow:" + Bright.Common.StringUtil.CollectionToString(BarDecreaseSlow) + "," + "MinDampHard:" + Bright.Common.StringUtil.CollectionToString(MinDampHard) + "," + "MaxDampHard:" + Bright.Common.StringUtil.CollectionToString(MaxDampHard) + "," + "MinDampSoft:" + Bright.Common.StringUtil.CollectionToString(MinDampSoft) + "," + "MaxDampSoft:" + Bright.Common.StringUtil.CollectionToString(MaxDampSoft) + "," + "ComboInc:" + Bright.Common.StringUtil.CollectionToString(ComboInc) + "," + "ComboZoneScale:" + Bright.Common.StringUtil.CollectionToString(ComboZoneScale) + "," + "AutoMaxcomboProb:" + Bright.Common.StringUtil.CollectionToString(AutoMaxcomboProb) + "," + "ComboBarIncAmp:" + Bright.Common.StringUtil.CollectionToString(ComboBarIncAmp) + "," + "ComboBarDecAmp:" + Bright.Common.StringUtil.CollectionToString(ComboBarDecAmp) + "," + "BarShakeBounceRand:" + Bright.Common.StringUtil.CollectionToString(BarShakeBounceRand) + "," + "BarShakeMinAmp:" + Bright.Common.StringUtil.CollectionToString(BarShakeMinAmp) + "," + "BarShakeMaxAmp:" + Bright.Common.StringUtil.CollectionToString(BarShakeMaxAmp) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }