126 lines
5.2 KiB
C#
126 lines
5.2 KiB
C#
//------------------------------------------------------------------------------
|
|
// <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 ConstructionHeightEvent : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public ConstructionHeightEvent(JSONNode _json)
|
|
{
|
|
{ if(!_json["Height"].IsNumber) { throw new SerializationException(); } Height = _json["Height"]; }
|
|
{ if(!_json["CraneHeightToFocus"].IsNumber) { throw new SerializationException(); } CraneHeightToFocus = _json["CraneHeightToFocus"]; }
|
|
{ if(!_json["CraneCycleTime"].IsNumber) { throw new SerializationException(); } CraneCycleTime = _json["CraneCycleTime"]; }
|
|
{ if(!_json["CraneHeightRise"].IsNumber) { throw new SerializationException(); } CraneHeightRise = _json["CraneHeightRise"]; }
|
|
{ if(!_json["CraneRiseTime"].IsNumber) { throw new SerializationException(); } CraneRiseTime = _json["CraneRiseTime"]; }
|
|
{ if(!_json["CameraYOffest"].IsNumber) { throw new SerializationException(); } CameraYOffest = _json["CameraYOffest"]; }
|
|
{ if(!_json["CameraDepth"].IsNumber) { throw new SerializationException(); } CameraDepth = _json["CameraDepth"]; }
|
|
{ if(!_json["LinearDrag"].IsNumber) { throw new SerializationException(); } LinearDrag = _json["LinearDrag"]; }
|
|
{ if(!_json["AngularDrag"].IsNumber) { throw new SerializationException(); } AngularDrag = _json["AngularDrag"]; }
|
|
{ var __json0 = _json["SpEventList"]; if(!__json0.IsArray) { throw new SerializationException(); } SpEventList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpEventList.Add(__v0); } }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public ConstructionHeightEvent(int Height, float CraneHeightToFocus, float CraneCycleTime, float CraneHeightRise, float CraneRiseTime, float CameraYOffest, float CameraDepth, float LinearDrag, float AngularDrag, System.Collections.Generic.List<int> SpEventList )
|
|
{
|
|
this.Height = Height;
|
|
this.CraneHeightToFocus = CraneHeightToFocus;
|
|
this.CraneCycleTime = CraneCycleTime;
|
|
this.CraneHeightRise = CraneHeightRise;
|
|
this.CraneRiseTime = CraneRiseTime;
|
|
this.CameraYOffest = CameraYOffest;
|
|
this.CameraDepth = CameraDepth;
|
|
this.LinearDrag = LinearDrag;
|
|
this.AngularDrag = AngularDrag;
|
|
this.SpEventList = SpEventList;
|
|
PostInit();
|
|
}
|
|
|
|
public static ConstructionHeightEvent DeserializeConstructionHeightEvent(JSONNode _json)
|
|
{
|
|
return new ConstructionHeightEvent(_json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 单位米
|
|
/// </summary>
|
|
public int Height { get; private set; }
|
|
/// <summary>
|
|
/// 吊车默认距离Focus点的距离
|
|
/// </summary>
|
|
public float CraneHeightToFocus { get; private set; }
|
|
/// <summary>
|
|
/// 单位秒,走完一周的时间
|
|
/// </summary>
|
|
public float CraneCycleTime { get; private set; }
|
|
/// <summary>
|
|
/// 释放单元块后,吊车会拉起到屏幕外,然后放下
|
|
/// </summary>
|
|
public float CraneHeightRise { get; private set; }
|
|
/// <summary>
|
|
/// 吊车从拉起到放下的时间
|
|
/// </summary>
|
|
public float CraneRiseTime { get; private set; }
|
|
/// <summary>
|
|
/// 距离focus点的y轴偏转
|
|
/// </summary>
|
|
public float CameraYOffest { get; private set; }
|
|
/// <summary>
|
|
/// 相机默认对准Focus点<br/>这里是配置相机的z轴
|
|
/// </summary>
|
|
public float CameraDepth { get; private set; }
|
|
/// <summary>
|
|
/// 只在吊车上时生效,落下时失效
|
|
/// </summary>
|
|
public float LinearDrag { get; private set; }
|
|
public float AngularDrag { get; private set; }
|
|
/// <summary>
|
|
/// 对应ConstructionSpEvent主键
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> SpEventList { get; private set; }
|
|
|
|
public const int __ID__ = 1117193218;
|
|
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 "{ "
|
|
+ "Height:" + Height + ","
|
|
+ "CraneHeightToFocus:" + CraneHeightToFocus + ","
|
|
+ "CraneCycleTime:" + CraneCycleTime + ","
|
|
+ "CraneHeightRise:" + CraneHeightRise + ","
|
|
+ "CraneRiseTime:" + CraneRiseTime + ","
|
|
+ "CameraYOffest:" + CameraYOffest + ","
|
|
+ "CameraDepth:" + CameraDepth + ","
|
|
+ "LinearDrag:" + LinearDrag + ","
|
|
+ "AngularDrag:" + AngularDrag + ","
|
|
+ "SpEventList:" + Bright.Common.StringUtil.CollectionToString(SpEventList) + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|