//------------------------------------------------------------------------------ // // 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 { 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(__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(__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(__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(__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 ZoneSequence, System.Collections.Generic.List ZoneScale, System.Collections.Generic.List ZoneExtraDamage, System.Collections.Generic.List 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; } /// /// 0:失败区域
1:成功区域
2:漂亮区域
3:完美区域 ///
public System.Collections.Generic.List ZoneSequence { get; private set; } /// /// 和排序一一对应,共享整个进度条
填0则没有该区域 ///
public System.Collections.Generic.List ZoneScale { get; private set; } /// /// 完美区域是最大刺鱼伤害,其余都是百分比
如无特殊情况不要动 ///
public System.Collections.Generic.List ZoneExtraDamage { get; private set; } /// /// 刺鱼伤害 *= 1 - 参数/2 + random(0, 参数)
如无特殊情况不要动 ///
public System.Collections.Generic.List ZoneExtraDamageRandom { get; private set; } public const int __ID__ = 1155458930; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func 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(); } }