Files
MinFt/Client/Assets/Scripts/Tables/FishSkill.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

153 lines
7.5 KiB
C#

//------------------------------------------------------------------------------
// <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>
/// 鱼的血量事件标签
/// </summary>
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<float>(__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<float>(__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<float>(__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<float>(__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<float>(__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<float> HPPercent, System.Collections.Generic.List<float> MaxDelay, FishBasicStats StatsIncType, float StatsIncParam, FishHPEventTypeAdvanced SpSkillType, System.Collections.Generic.List<float> SpSkillParams, System.Collections.Generic.List<float> ChargingTime, float ExecuteTime, FishPerformanceType PerformanceType, System.Collections.Generic.List<float> 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);
}
/// <summary>
/// 血量触发百分比
/// </summary>
public System.Collections.Generic.List<float> HPPercent { get; private set; }
/// <summary>
/// 最大延迟触发时间
/// </summary>
public System.Collections.Generic.List<float> MaxDelay { get; private set; }
/// <summary>
/// 鱼的基础属性
/// </summary>
public FishBasicStats StatsIncType { get; private set; }
/// <summary>
/// 基础属性的数值,直接加
/// </summary>
public float StatsIncParam { get; private set; }
/// <summary>
/// 触发事件类型
/// </summary>
public FishHPEventTypeAdvanced SpSkillType { get; private set; }
/// <summary>
/// 参数列表
/// </summary>
public System.Collections.Generic.List<float> SpSkillParams { get; private set; }
/// <summary>
/// 蓄力秒数
/// </summary>
public System.Collections.Generic.List<float> ChargingTime { get; private set; }
/// <summary>
/// 执行秒数
/// </summary>
public float ExecuteTime { get; private set; }
/// <summary>
/// 弹跳、冲刺
/// </summary>
public FishPerformanceType PerformanceType { get; private set; }
/// <summary>
/// 表现相关参数
/// </summary>
public System.Collections.Generic.List<float> PerformanceParam { get; private set; }
/// <summary>
/// 震动动画
/// </summary>
public string ShakeAnimation { get; private set; }
/// <summary>
/// 特殊表现编号
/// </summary>
public int SpSkillID { get; private set; }
/// <summary>
/// 特殊表现延迟时间
/// </summary>
public float SpSkillDelay { get; private set; }
public const int __ID__ = -1615185223;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> 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();
}
}