//------------------------------------------------------------------------------
//
// 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
{
///
/// 脏物卡住线,支持Struggle
///
public sealed partial class DirtyStuck : FishSpSkillLabel
{
public DirtyStuck(JSONNode _json) : base(_json)
{
{ if(!_json["ClickCount"].IsNumber) { throw new SerializationException(); } ClickCount = _json["ClickCount"]; }
{ if(!_json["StuckBarDecParam"].IsNumber) { throw new SerializationException(); } StuckBarDecParam = _json["StuckBarDecParam"]; }
{ if(!_json["TimelineCount"].IsNumber) { throw new SerializationException(); } TimelineCount = _json["TimelineCount"]; }
{ var __json0 = _json["DirtyPrefab"]; if(!__json0.IsArray) { throw new SerializationException(); } DirtyPrefab = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DirtyPrefab.Add(__v0); } }
{ var __json0 = _json["DirtyTimelineUp"]; if(!__json0.IsArray) { throw new SerializationException(); } DirtyTimelineUp = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DirtyTimelineUp.Add(__v0); } }
{ var __json0 = _json["DirtyTimelineIdle"]; if(!__json0.IsArray) { throw new SerializationException(); } DirtyTimelineIdle = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DirtyTimelineIdle.Add(__v0); } }
{ var __json0 = _json["DirtyTimelineStuck"]; if(!__json0.IsArray) { throw new SerializationException(); } DirtyTimelineStuck = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DirtyTimelineStuck.Add(__v0); } }
{ var __json0 = _json["DirtyTimelineClick"]; if(!__json0.IsArray) { throw new SerializationException(); } DirtyTimelineClick = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DirtyTimelineClick.Add(__v0); } }
{ var __json0 = _json["DirtyTimelineDown"]; if(!__json0.IsArray) { throw new SerializationException(); } DirtyTimelineDown = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DirtyTimelineDown.Add(__v0); } }
{ var __json0 = _json["DirtyApperDelay"]; if(!__json0.IsArray) { throw new SerializationException(); } DirtyApperDelay = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DirtyApperDelay.Add(__v0); } }
{ var __json0 = _json["StruggleFxDelay"]; if(!__json0.IsArray) { throw new SerializationException(); } StruggleFxDelay = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StruggleFxDelay.Add(__v0); } }
{ if(!_json["StruggleFx"].IsString) { throw new SerializationException(); } StruggleFx = _json["StruggleFx"]; }
{ if(!_json["StruggleWaterFx"].IsString) { throw new SerializationException(); } StruggleWaterFx = _json["StruggleWaterFx"]; }
{ if(!_json["StuckFx"].IsString) { throw new SerializationException(); } StuckFx = _json["StuckFx"]; }
{ if(!_json["StuckClickFx"].IsString) { throw new SerializationException(); } StuckClickFx = _json["StuckClickFx"]; }
{ if(!_json["StuckBarFx"].IsString) { throw new SerializationException(); } StuckBarFx = _json["StuckBarFx"]; }
PostInit();
}
public DirtyStuck(int ClickCount, float StuckBarDecParam, int TimelineCount, System.Collections.Generic.List DirtyPrefab, System.Collections.Generic.List DirtyTimelineUp, System.Collections.Generic.List DirtyTimelineIdle, System.Collections.Generic.List DirtyTimelineStuck, System.Collections.Generic.List DirtyTimelineClick, System.Collections.Generic.List DirtyTimelineDown, System.Collections.Generic.List DirtyApperDelay, System.Collections.Generic.List StruggleFxDelay, string StruggleFx, string StruggleWaterFx, string StuckFx, string StuckClickFx, string StuckBarFx ) : base()
{
this.ClickCount = ClickCount;
this.StuckBarDecParam = StuckBarDecParam;
this.TimelineCount = TimelineCount;
this.DirtyPrefab = DirtyPrefab;
this.DirtyTimelineUp = DirtyTimelineUp;
this.DirtyTimelineIdle = DirtyTimelineIdle;
this.DirtyTimelineStuck = DirtyTimelineStuck;
this.DirtyTimelineClick = DirtyTimelineClick;
this.DirtyTimelineDown = DirtyTimelineDown;
this.DirtyApperDelay = DirtyApperDelay;
this.StruggleFxDelay = StruggleFxDelay;
this.StruggleFx = StruggleFx;
this.StruggleWaterFx = StruggleWaterFx;
this.StuckFx = StuckFx;
this.StuckClickFx = StuckClickFx;
this.StuckBarFx = StuckBarFx;
PostInit();
}
public static DirtyStuck DeserializeDirtyStuck(JSONNode _json)
{
return new DirtyStuck(_json);
}
///
/// 解锁需要的点击次数
///
public int ClickCount { get; private set; }
///
/// 被卡住的时候,进度条后退参数,后退进度*=这个数值
///
public float StuckBarDecParam { get; private set; }
///
/// 一共有几种timeline,随机选择一个作为index,后续的timeline就都选择对应的编号
///
public int TimelineCount { get; private set; }
///
/// 一共几个油桶的prefab,里边有模型、特效、timeline
///
public System.Collections.Generic.List DirtyPrefab { get; private set; }
///
/// 油桶出现的timeline
///
public System.Collections.Generic.List DirtyTimelineUp { get; private set; }
///
/// 油桶待机的timeline
///
public System.Collections.Generic.List DirtyTimelineIdle { get; private set; }
///
/// 油桶卡住的timeline
///
public System.Collections.Generic.List DirtyTimelineStuck { get; private set; }
///
/// 油桶点击反馈的timeline,用之前选好的编号
///
public System.Collections.Generic.List DirtyTimelineClick { get; private set; }
///
/// 油桶下沉的timeline,用之前选好的编号
///
public System.Collections.Generic.List DirtyTimelineDown { get; private set; }
///
/// 数组,对应鱼不同的struggle之后,延迟这个时间播放油桶的出现timeline
///
public System.Collections.Generic.List DirtyApperDelay { get; private set; }
///
/// 数组,分别对应Jump动画开始播后,特效延迟时间,有几个动画写几个
///
public System.Collections.Generic.List StruggleFxDelay { get; private set; }
///
/// 鱼起跳后,根据JumpFxDelay延迟,在鱼的Root下挂一个特效
///
public string StruggleFx { get; private set; }
///
/// 鱼起跳后,根据JumpFxDelay延迟,在鱼的第一层下方挂一个特效,高度为水面高度
///
public string StruggleWaterFx { get; private set; }
///
/// 卡住的时候,相机上播放的特效
///
public string StuckFx { get; private set; }
///
/// 卡住的时候,点击的特效反馈
///
public string StuckClickFx { get; private set; }
///
/// 卡住的时候,进度条上播放的特效
///
public string StuckBarFx { get; private set; }
public const int __ID__ = -1049695990;
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 "{ "
+ "ClickCount:" + ClickCount + ","
+ "StuckBarDecParam:" + StuckBarDecParam + ","
+ "TimelineCount:" + TimelineCount + ","
+ "DirtyPrefab:" + Bright.Common.StringUtil.CollectionToString(DirtyPrefab) + ","
+ "DirtyTimelineUp:" + Bright.Common.StringUtil.CollectionToString(DirtyTimelineUp) + ","
+ "DirtyTimelineIdle:" + Bright.Common.StringUtil.CollectionToString(DirtyTimelineIdle) + ","
+ "DirtyTimelineStuck:" + Bright.Common.StringUtil.CollectionToString(DirtyTimelineStuck) + ","
+ "DirtyTimelineClick:" + Bright.Common.StringUtil.CollectionToString(DirtyTimelineClick) + ","
+ "DirtyTimelineDown:" + Bright.Common.StringUtil.CollectionToString(DirtyTimelineDown) + ","
+ "DirtyApperDelay:" + Bright.Common.StringUtil.CollectionToString(DirtyApperDelay) + ","
+ "StruggleFxDelay:" + Bright.Common.StringUtil.CollectionToString(StruggleFxDelay) + ","
+ "StruggleFx:" + StruggleFx + ","
+ "StruggleWaterFx:" + StruggleWaterFx + ","
+ "StuckFx:" + StuckFx + ","
+ "StuckClickFx:" + StuckClickFx + ","
+ "StuckBarFx:" + StuckBarFx + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}