Files
back_cantanBuilding/Assets/Scripts/Tables/RodWaitingSequence.cs
2026-05-26 16:15:54 +08:00

91 lines
4.3 KiB
C#
Raw Permalink 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 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<float>(__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<float>(__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<float>(__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<float>(__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<float> ZoneWeight, System.Collections.Generic.List<float> MoveTime, System.Collections.Generic.List<float> StayTime, System.Collections.Generic.List<float> 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; }
/// <summary>
/// 0失败区域<br/>1成功区域<br/>2漂亮区域<br/>3完美区域<br/><br/>注意开始都从0.5的位置进行移动
/// </summary>
public System.Collections.Generic.List<float> ZoneWeight { get; private set; }
/// <summary>
/// 单位秒
/// </summary>
public System.Collections.Generic.List<float> MoveTime { get; private set; }
/// <summary>
/// 到达在这个区域中的随机位置后,会在该区域进行滞留<br/>指针永不停止,会在区域中随机选择几个点位进行移动<br/>需要大于0
/// </summary>
public System.Collections.Generic.List<float> StayTime { get; private set; }
/// <summary>
/// 到达随机位置滞留时随机选择点位的次数至少为1
/// </summary>
public System.Collections.Generic.List<float> StayMoveCount { get; private set; }
public const int __ID__ = -2124224377;
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 + ","
+ "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();
}
}