//------------------------------------------------------------------------------
//
// 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 SandStorm : FishSpSkillLabel
{
public SandStorm(JSONNode _json) : base(_json)
{
{ if(!_json["SkillStageMaxCount"].IsNumber) { throw new SerializationException(); } SkillStageMaxCount = _json["SkillStageMaxCount"]; }
{ var __json0 = _json["UISandFxDelay"]; if(!__json0.IsArray) { throw new SerializationException(); } UISandFxDelay = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } UISandFxDelay.Add(__v0); } }
{ var __json0 = _json["UISandFx"]; if(!__json0.IsArray) { throw new SerializationException(); } UISandFx = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } UISandFx.Add(__v0); } }
{ if(!_json["JumpFx"].IsString) { throw new SerializationException(); } JumpFx = _json["JumpFx"]; }
{ var __json0 = _json["JumpFxDelay"]; if(!__json0.IsArray) { throw new SerializationException(); } JumpFxDelay = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } JumpFxDelay.Add(__v0); } }
{ if(!_json["SceneFx"].IsString) { throw new SerializationException(); } SceneFx = _json["SceneFx"]; }
{ var __json0 = _json["ChangeFx"]; if(!__json0.IsArray) { throw new SerializationException(); } ChangeFx = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } ChangeFx.Add(__v0); } }
{ var __json0 = _json["DisappearFx"]; if(!__json0.IsArray) { throw new SerializationException(); } DisappearFx = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DisappearFx.Add(__v0); } }
PostInit();
}
public SandStorm(int SkillStageMaxCount, System.Collections.Generic.List UISandFxDelay, System.Collections.Generic.List UISandFx, string JumpFx, System.Collections.Generic.List JumpFxDelay, string SceneFx, System.Collections.Generic.List ChangeFx, System.Collections.Generic.List DisappearFx ) : base()
{
this.SkillStageMaxCount = SkillStageMaxCount;
this.UISandFxDelay = UISandFxDelay;
this.UISandFx = UISandFx;
this.JumpFx = JumpFx;
this.JumpFxDelay = JumpFxDelay;
this.SceneFx = SceneFx;
this.ChangeFx = ChangeFx;
this.DisappearFx = DisappearFx;
PostInit();
}
public static SandStorm DeserializeSandStorm(JSONNode _json)
{
return new SandStorm(_json);
}
///
/// 技能阶段的最大数
///
public int SkillStageMaxCount { get; private set; }
///
/// 数组,分别对应Jump动画开始播后,特效延迟时间,有几个动画写几个
///
public System.Collections.Generic.List UISandFxDelay { get; private set; }
///
/// 每个阶段对应的ui特效,有几个阶段配几个
///
public System.Collections.Generic.List UISandFx { get; private set; }
///
/// 鱼起跳后,根据JumpFxDelay延迟,在场景里挂一个特效
///
public string JumpFx { get; private set; }
///
/// 数组,分别对应Jump动画开始播后,特效延迟时间,有几个动画写几个
///
public System.Collections.Generic.List JumpFxDelay { get; private set; }
///
/// 场景特效,全程循环播放
///
public string SceneFx { get; private set; }
///
/// 转场特效,播放UI特效前播放,数组,每个阶段单独配置
///
public System.Collections.Generic.List ChangeFx { get; private set; }
///
/// 特效消失前播放的特效,和技能阶段数有关,有几个UISandFx特效写几个
///
public System.Collections.Generic.List DisappearFx { get; private set; }
public const int __ID__ = -656663899;
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 "{ "
+ "SkillStageMaxCount:" + SkillStageMaxCount + ","
+ "UISandFxDelay:" + Bright.Common.StringUtil.CollectionToString(UISandFxDelay) + ","
+ "UISandFx:" + Bright.Common.StringUtil.CollectionToString(UISandFx) + ","
+ "JumpFx:" + JumpFx + ","
+ "JumpFxDelay:" + Bright.Common.StringUtil.CollectionToString(JumpFxDelay) + ","
+ "SceneFx:" + SceneFx + ","
+ "ChangeFx:" + Bright.Common.StringUtil.CollectionToString(ChangeFx) + ","
+ "DisappearFx:" + Bright.Common.StringUtil.CollectionToString(DisappearFx) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}