//------------------------------------------------------------------------------
//
// 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
{
///
/// 电击,只支持Jump,跳起状态生效
///
public sealed partial class ElectricShock : FishSpSkillLabel
{
public ElectricShock(JSONNode _json) : base(_json)
{
{ var __json0 = _json["ShockPeriod"]; if(!__json0.IsArray) { throw new SerializationException(); } ShockPeriod = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ShockPeriod.Add(__v0); } }
{ var __json0 = _json["BarRandBigParam"]; if(!__json0.IsArray) { throw new SerializationException(); } BarRandBigParam = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarRandBigParam.Add(__v0); } }
{ var __json0 = _json["BarRandNormalParam"]; if(!__json0.IsArray) { throw new SerializationException(); } BarRandNormalParam = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BarRandNormalParam.Add(__v0); } }
{ var __json0 = _json["DecayTime"]; if(!__json0.IsArray) { throw new SerializationException(); } DecayTime = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DecayTime.Add(__v0); } }
{ if(!_json["FxFish"].IsString) { throw new SerializationException(); } FxFish = _json["FxFish"]; }
{ if(!_json["FxScreen"].IsString) { throw new SerializationException(); } FxScreen = _json["FxScreen"]; }
{ if(!_json["FxBar"].IsString) { throw new SerializationException(); } FxBar = _json["FxBar"]; }
{ if(!_json["FxFishIcon"].IsString) { throw new SerializationException(); } FxFishIcon = _json["FxFishIcon"]; }
{ if(!_json["AudioScreen"].IsString) { throw new SerializationException(); } AudioScreen = _json["AudioScreen"]; }
{ if(!_json["AudioRewardFish"].IsString) { throw new SerializationException(); } AudioRewardFish = _json["AudioRewardFish"]; }
PostInit();
}
public ElectricShock(System.Collections.Generic.List ShockPeriod, System.Collections.Generic.List BarRandBigParam, System.Collections.Generic.List BarRandNormalParam, System.Collections.Generic.List DecayTime, string FxFish, string FxScreen, string FxBar, string FxFishIcon, string AudioScreen, string AudioRewardFish ) : base()
{
this.ShockPeriod = ShockPeriod;
this.BarRandBigParam = BarRandBigParam;
this.BarRandNormalParam = BarRandNormalParam;
this.DecayTime = DecayTime;
this.FxFish = FxFish;
this.FxScreen = FxScreen;
this.FxBar = FxBar;
this.FxFishIcon = FxFishIcon;
this.AudioScreen = AudioScreen;
this.AudioRewardFish = AudioRewardFish;
PostInit();
}
public static ElectricShock DeserializeElectricShock(JSONNode _json)
{
return new ElectricShock(_json);
}
///
/// 间隔周期,在两个数之间随机,一个周期分为Big部分和Normal部分。会保证最小时间大于衰减时间
///
public System.Collections.Generic.List ShockPeriod { get; private set; }
///
/// 刚进入电击的时候,进度条随机的额外参数,分别是最小值和最大值,在两个数之间随机
///
public System.Collections.Generic.List BarRandBigParam { get; private set; }
///
/// 稳定的时候,进度条随机的额外参数,分别是最小值和最大值,在两个数之间随机
///
public System.Collections.Generic.List BarRandNormalParam { get; private set; }
///
/// 衰减时间,在两个数之间随机,在这段时间内,从Big衰减到Normal
///
public System.Collections.Generic.List DecayTime { get; private set; }
///
/// 鱼起跳的时候,立刻在Root处挂上一个特效
///
public string FxFish { get; private set; }
///
/// 鱼起跳的时候,触发的全屏特效
///
public string FxScreen { get; private set; }
///
/// 鱼起跳的时候,进度条处特效
///
public string FxBar { get; private set; }
///
/// 鱼起跳的时候,头像处特效
///
public string FxFishIcon { get; private set; }
///
/// 鱼起跳的时候,播放全屏音效
///
public string AudioScreen { get; private set; }
///
/// 结算界面出现时,鱼循环播放的声音
///
public string AudioRewardFish { get; private set; }
public const int __ID__ = -1874020507;
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 "{ "
+ "ShockPeriod:" + Bright.Common.StringUtil.CollectionToString(ShockPeriod) + ","
+ "BarRandBigParam:" + Bright.Common.StringUtil.CollectionToString(BarRandBigParam) + ","
+ "BarRandNormalParam:" + Bright.Common.StringUtil.CollectionToString(BarRandNormalParam) + ","
+ "DecayTime:" + Bright.Common.StringUtil.CollectionToString(DecayTime) + ","
+ "FxFish:" + FxFish + ","
+ "FxScreen:" + FxScreen + ","
+ "FxBar:" + FxBar + ","
+ "FxFishIcon:" + FxFishIcon + ","
+ "AudioScreen:" + AudioScreen + ","
+ "AudioRewardFish:" + AudioRewardFish + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}