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

91 lines
4.4 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
{
public sealed partial class RodWaitingZone : Bright.Config.BeanBase
{
public JSONNode json;
public RodWaitingZone(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ var __json0 = _json["ZoneSequence"]; if(!__json0.IsArray) { throw new SerializationException(); } ZoneSequence = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ZoneSequence.Add(__v0); } }
{ var __json0 = _json["ZoneScale"]; if(!__json0.IsArray) { throw new SerializationException(); } ZoneScale = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ZoneScale.Add(__v0); } }
{ var __json0 = _json["ZoneExtraDamage"]; if(!__json0.IsArray) { throw new SerializationException(); } ZoneExtraDamage = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ZoneExtraDamage.Add(__v0); } }
{ var __json0 = _json["ZoneExtraDamageRandom"]; if(!__json0.IsArray) { throw new SerializationException(); } ZoneExtraDamageRandom = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ZoneExtraDamageRandom.Add(__v0); } }
json = _json;
PostInit();
}
public RodWaitingZone(int ID, System.Collections.Generic.List<int> ZoneSequence, System.Collections.Generic.List<int> ZoneScale, System.Collections.Generic.List<float> ZoneExtraDamage, System.Collections.Generic.List<float> ZoneExtraDamageRandom )
{
this.ID = ID;
this.ZoneSequence = ZoneSequence;
this.ZoneScale = ZoneScale;
this.ZoneExtraDamage = ZoneExtraDamage;
this.ZoneExtraDamageRandom = ZoneExtraDamageRandom;
PostInit();
}
public static RodWaitingZone DeserializeRodWaitingZone(JSONNode _json)
{
return new RodWaitingZone(_json);
}
public int ID { get; private set; }
/// <summary>
/// 0失败区域<br/>1成功区域<br/>2漂亮区域<br/>3完美区域
/// </summary>
public System.Collections.Generic.List<int> ZoneSequence { get; private set; }
/// <summary>
/// 和排序一一对应,共享整个进度条<br/>填0则没有该区域
/// </summary>
public System.Collections.Generic.List<int> ZoneScale { get; private set; }
/// <summary>
/// 完美区域是最大刺鱼伤害,其余都是百分比<br/>如无特殊情况不要动
/// </summary>
public System.Collections.Generic.List<float> ZoneExtraDamage { get; private set; }
/// <summary>
/// 刺鱼伤害 *= 1 - 参数/2 + random(0, 参数)<br/>如无特殊情况不要动
/// </summary>
public System.Collections.Generic.List<float> ZoneExtraDamageRandom { get; private set; }
public const int __ID__ = 1155458930;
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 "{ "
+ "ID:" + ID + ","
+ "ZoneSequence:" + Bright.Common.StringUtil.CollectionToString(ZoneSequence) + ","
+ "ZoneScale:" + Bright.Common.StringUtil.CollectionToString(ZoneScale) + ","
+ "ZoneExtraDamage:" + Bright.Common.StringUtil.CollectionToString(ZoneExtraDamage) + ","
+ "ZoneExtraDamageRandom:" + Bright.Common.StringUtil.CollectionToString(ZoneExtraDamageRandom) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}