//------------------------------------------------------------------------------ // // 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 RodWaitingSequence : Bright.Config.BeanBase { public JSONNode json; public RodWaitingSequence(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { var __json0 = _json["ZoneWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } ZoneWeight = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ZoneWeight.Add(__v0); } } { var __json0 = _json["MoveTime"]; if(!__json0.IsArray) { throw new SerializationException(); } MoveTime = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MoveTime.Add(__v0); } } { var __json0 = _json["StayTime"]; if(!__json0.IsArray) { throw new SerializationException(); } StayTime = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StayTime.Add(__v0); } } { var __json0 = _json["StayMoveCount"]; if(!__json0.IsArray) { throw new SerializationException(); } StayMoveCount = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StayMoveCount.Add(__v0); } } json = _json; PostInit(); } public RodWaitingSequence(int ID, System.Collections.Generic.List ZoneWeight, System.Collections.Generic.List MoveTime, System.Collections.Generic.List StayTime, System.Collections.Generic.List StayMoveCount ) { this.ID = ID; this.ZoneWeight = ZoneWeight; this.MoveTime = MoveTime; this.StayTime = StayTime; this.StayMoveCount = StayMoveCount; PostInit(); } public static RodWaitingSequence DeserializeRodWaitingSequence(JSONNode _json) { return new RodWaitingSequence(_json); } public int ID { get; private set; } /// /// 0:失败区域
1:成功区域
2:漂亮区域
3:完美区域

注意,开始都从0.5的位置进行移动 ///
public System.Collections.Generic.List ZoneWeight { get; private set; } /// /// 单位秒 /// public System.Collections.Generic.List MoveTime { get; private set; } /// /// 到达在这个区域中的随机位置后,会在该区域进行滞留
指针永不停止,会在区域中随机选择几个点位进行移动
需要大于0 ///
public System.Collections.Generic.List StayTime { get; private set; } /// /// 到达随机位置滞留时,随机选择点位的次数,至少为1 /// public System.Collections.Generic.List StayMoveCount { get; private set; } public const int __ID__ = -2124224377; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "ZoneWeight:" + Bright.Common.StringUtil.CollectionToString(ZoneWeight) + "," + "MoveTime:" + Bright.Common.StringUtil.CollectionToString(MoveTime) + "," + "StayTime:" + Bright.Common.StringUtil.CollectionToString(StayTime) + "," + "StayMoveCount:" + Bright.Common.StringUtil.CollectionToString(StayMoveCount) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }