Files
MinFt/Client/Assets/Scripts/Tables/DirtyStuck.cs
2026-04-27 12:07:32 +08:00

174 lines
10 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
/// <summary>
/// 脏物卡住线支持Struggle
/// </summary>
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<string>(__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<string>(__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<string>(__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<string>(__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<string>(__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<string>(__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<float>(__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<float>(__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<string> DirtyPrefab, System.Collections.Generic.List<string> DirtyTimelineUp, System.Collections.Generic.List<string> DirtyTimelineIdle, System.Collections.Generic.List<string> DirtyTimelineStuck, System.Collections.Generic.List<string> DirtyTimelineClick, System.Collections.Generic.List<string> DirtyTimelineDown, System.Collections.Generic.List<float> DirtyApperDelay, System.Collections.Generic.List<float> 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);
}
/// <summary>
/// 解锁需要的点击次数
/// </summary>
public int ClickCount { get; private set; }
/// <summary>
/// 被卡住的时候,进度条后退参数,后退进度*=这个数值
/// </summary>
public float StuckBarDecParam { get; private set; }
/// <summary>
/// 一共有几种timeline随机选择一个作为index后续的timeline就都选择对应的编号
/// </summary>
public int TimelineCount { get; private set; }
/// <summary>
/// 一共几个油桶的prefab里边有模型、特效、timeline
/// </summary>
public System.Collections.Generic.List<string> DirtyPrefab { get; private set; }
/// <summary>
/// 油桶出现的timeline
/// </summary>
public System.Collections.Generic.List<string> DirtyTimelineUp { get; private set; }
/// <summary>
/// 油桶待机的timeline
/// </summary>
public System.Collections.Generic.List<string> DirtyTimelineIdle { get; private set; }
/// <summary>
/// 油桶卡住的timeline
/// </summary>
public System.Collections.Generic.List<string> DirtyTimelineStuck { get; private set; }
/// <summary>
/// 油桶点击反馈的timeline用之前选好的编号
/// </summary>
public System.Collections.Generic.List<string> DirtyTimelineClick { get; private set; }
/// <summary>
/// 油桶下沉的timeline用之前选好的编号
/// </summary>
public System.Collections.Generic.List<string> DirtyTimelineDown { get; private set; }
/// <summary>
/// 数组对应鱼不同的struggle之后延迟这个时间播放油桶的出现timeline
/// </summary>
public System.Collections.Generic.List<float> DirtyApperDelay { get; private set; }
/// <summary>
/// 数组分别对应Jump动画开始播后特效延迟时间有几个动画写几个
/// </summary>
public System.Collections.Generic.List<float> StruggleFxDelay { get; private set; }
/// <summary>
/// 鱼起跳后根据JumpFxDelay延迟在鱼的Root下挂一个特效
/// </summary>
public string StruggleFx { get; private set; }
/// <summary>
/// 鱼起跳后根据JumpFxDelay延迟在鱼的第一层下方挂一个特效高度为水面高度
/// </summary>
public string StruggleWaterFx { get; private set; }
/// <summary>
/// 卡住的时候,相机上播放的特效
/// </summary>
public string StuckFx { get; private set; }
/// <summary>
/// 卡住的时候,点击的特效反馈
/// </summary>
public string StuckClickFx { get; private set; }
/// <summary>
/// 卡住的时候,进度条上播放的特效
/// </summary>
public string StuckBarFx { get; private set; }
public const int __ID__ = -1049695990;
public override int GetTypeId() => __ID__;
public override void Resolve(Dictionary<string, object> _tables)
{
base.Resolve(_tables);
PostResolve();
}
public override void TranslateText(System.Func<string, string, string> 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();
}
}