备份CatanBuilding瘦身独立工程
This commit is contained in:
90
Assets/Scripts/Tables/RodWaitingZone.cs
Normal file
90
Assets/Scripts/Tables/RodWaitingZone.cs
Normal file
@@ -0,0 +1,90 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user