//------------------------------------------------------------------------------ // // 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 FishSkill : Bright.Config.BeanBase { public JSONNode json; public FishSkill(JSONNode _json) { { var __json0 = _json["HPPercent"]; if(!__json0.IsArray) { throw new SerializationException(); } HPPercent = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } HPPercent.Add(__v0); } } { var __json0 = _json["MaxDelay"]; if(!__json0.IsArray) { throw new SerializationException(); } MaxDelay = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MaxDelay.Add(__v0); } } { if(!_json["StatsIncType"].IsNumber) { throw new SerializationException(); } StatsIncType = (FishBasicStats)_json["StatsIncType"].AsInt; } { if(!_json["StatsIncParam"].IsNumber) { throw new SerializationException(); } StatsIncParam = _json["StatsIncParam"]; } { if(!_json["SpSkillType"].IsNumber) { throw new SerializationException(); } SpSkillType = (FishHPEventTypeAdvanced)_json["SpSkillType"].AsInt; } { var __json0 = _json["SpSkillParams"]; if(!__json0.IsArray) { throw new SerializationException(); } SpSkillParams = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpSkillParams.Add(__v0); } } { var __json0 = _json["ChargingTime"]; if(!__json0.IsArray) { throw new SerializationException(); } ChargingTime = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ChargingTime.Add(__v0); } } { if(!_json["ExecuteTime"].IsNumber) { throw new SerializationException(); } ExecuteTime = _json["ExecuteTime"]; } { if(!_json["PerformanceType"].IsNumber) { throw new SerializationException(); } PerformanceType = (FishPerformanceType)_json["PerformanceType"].AsInt; } { var __json0 = _json["PerformanceParam"]; if(!__json0.IsArray) { throw new SerializationException(); } PerformanceParam = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PerformanceParam.Add(__v0); } } { if(!_json["ShakeAnimation"].IsString) { throw new SerializationException(); } ShakeAnimation = _json["ShakeAnimation"]; } { if(!_json["SpSkillID"].IsNumber) { throw new SerializationException(); } SpSkillID = _json["SpSkillID"]; } { if(!_json["SpSkillDelay"].IsNumber) { throw new SerializationException(); } SpSkillDelay = _json["SpSkillDelay"]; } json = _json; PostInit(); } public FishSkill(System.Collections.Generic.List HPPercent, System.Collections.Generic.List MaxDelay, FishBasicStats StatsIncType, float StatsIncParam, FishHPEventTypeAdvanced SpSkillType, System.Collections.Generic.List SpSkillParams, System.Collections.Generic.List ChargingTime, float ExecuteTime, FishPerformanceType PerformanceType, System.Collections.Generic.List PerformanceParam, string ShakeAnimation, int SpSkillID, float SpSkillDelay ) { this.HPPercent = HPPercent; this.MaxDelay = MaxDelay; this.StatsIncType = StatsIncType; this.StatsIncParam = StatsIncParam; this.SpSkillType = SpSkillType; this.SpSkillParams = SpSkillParams; this.ChargingTime = ChargingTime; this.ExecuteTime = ExecuteTime; this.PerformanceType = PerformanceType; this.PerformanceParam = PerformanceParam; this.ShakeAnimation = ShakeAnimation; this.SpSkillID = SpSkillID; this.SpSkillDelay = SpSkillDelay; PostInit(); } public static FishSkill DeserializeFishSkill(JSONNode _json) { return new FishSkill(_json); } /// /// 血量触发百分比 /// public System.Collections.Generic.List HPPercent { get; private set; } /// /// 最大延迟触发时间 /// public System.Collections.Generic.List MaxDelay { get; private set; } /// /// 鱼的基础属性 /// public FishBasicStats StatsIncType { get; private set; } /// /// 基础属性的数值,直接加 /// public float StatsIncParam { get; private set; } /// /// 触发事件类型 /// public FishHPEventTypeAdvanced SpSkillType { get; private set; } /// /// 参数列表 /// public System.Collections.Generic.List SpSkillParams { get; private set; } /// /// 蓄力秒数 /// public System.Collections.Generic.List ChargingTime { get; private set; } /// /// 执行秒数 /// public float ExecuteTime { get; private set; } /// /// 弹跳、冲刺 /// public FishPerformanceType PerformanceType { get; private set; } /// /// 表现相关参数 /// public System.Collections.Generic.List PerformanceParam { get; private set; } /// /// 震动动画 /// public string ShakeAnimation { get; private set; } /// /// 特殊表现编号 /// public int SpSkillID { get; private set; } /// /// 特殊表现延迟时间 /// public float SpSkillDelay { get; private set; } public const int __ID__ = -1615185223; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "HPPercent:" + Bright.Common.StringUtil.CollectionToString(HPPercent) + "," + "MaxDelay:" + Bright.Common.StringUtil.CollectionToString(MaxDelay) + "," + "StatsIncType:" + StatsIncType + "," + "StatsIncParam:" + StatsIncParam + "," + "SpSkillType:" + SpSkillType + "," + "SpSkillParams:" + Bright.Common.StringUtil.CollectionToString(SpSkillParams) + "," + "ChargingTime:" + Bright.Common.StringUtil.CollectionToString(ChargingTime) + "," + "ExecuteTime:" + ExecuteTime + "," + "PerformanceType:" + PerformanceType + "," + "PerformanceParam:" + Bright.Common.StringUtil.CollectionToString(PerformanceParam) + "," + "ShakeAnimation:" + ShakeAnimation + "," + "SpSkillID:" + SpSkillID + "," + "SpSkillDelay:" + SpSkillDelay + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }