//------------------------------------------------------------------------------ // // 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 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(__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 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); } /// /// 单位米 /// public int Height { get; private set; } /// /// 吊车默认距离Focus点的距离 /// public float CraneHeightToFocus { get; private set; } /// /// 单位秒,走完一周的时间 /// public float CraneCycleTime { get; private set; } /// /// 释放单元块后,吊车会拉起到屏幕外,然后放下 /// public float CraneHeightRise { get; private set; } /// /// 吊车从拉起到放下的时间 /// public float CraneRiseTime { get; private set; } /// /// 距离focus点的y轴偏转 /// public float CameraYOffest { get; private set; } /// /// 相机默认对准Focus点
这里是配置相机的z轴 ///
public float CameraDepth { get; private set; } /// /// 只在吊车上时生效,落下时失效 /// public float LinearDrag { get; private set; } public float AngularDrag { get; private set; } /// /// 对应ConstructionSpEvent主键 /// public System.Collections.Generic.List SpEventList { get; private set; } public const int __ID__ = 1117193218; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func 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(); } }