85 lines
2.8 KiB
C#
85 lines
2.8 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 DiggingDisplayInit : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public DiggingDisplayInit(JSONNode _json)
|
|
{
|
|
{ if(!_json["Height"].IsNumber) { throw new SerializationException(); } Height = _json["Height"]; }
|
|
{ if(!_json["PropContainerY"].IsNumber) { throw new SerializationException(); } PropContainerY = _json["PropContainerY"]; }
|
|
{ if(!_json["VirtualCameraY"].IsNumber) { throw new SerializationException(); } VirtualCameraY = _json["VirtualCameraY"]; }
|
|
{ if(!_json["PropContainerZ"].IsNumber) { throw new SerializationException(); } PropContainerZ = _json["PropContainerZ"]; }
|
|
{ if(!_json["VirtualCameraZ"].IsNumber) { throw new SerializationException(); } VirtualCameraZ = _json["VirtualCameraZ"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public DiggingDisplayInit(int Height, float PropContainerY, float VirtualCameraY, float PropContainerZ, float VirtualCameraZ )
|
|
{
|
|
this.Height = Height;
|
|
this.PropContainerY = PropContainerY;
|
|
this.VirtualCameraY = VirtualCameraY;
|
|
this.PropContainerZ = PropContainerZ;
|
|
this.VirtualCameraZ = VirtualCameraZ;
|
|
PostInit();
|
|
}
|
|
|
|
public static DiggingDisplayInit DeserializeDiggingDisplayInit(JSONNode _json)
|
|
{
|
|
return new DiggingDisplayInit(_json);
|
|
}
|
|
|
|
public int Height { get; private set; }
|
|
public float PropContainerY { get; private set; }
|
|
public float VirtualCameraY { get; private set; }
|
|
/// <summary>
|
|
/// 通常不用修改
|
|
/// </summary>
|
|
public float PropContainerZ { get; private set; }
|
|
/// <summary>
|
|
/// 通常不用修改
|
|
/// </summary>
|
|
public float VirtualCameraZ { get; private set; }
|
|
|
|
public const int __ID__ = 934646581;
|
|
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 + ","
|
|
+ "PropContainerY:" + PropContainerY + ","
|
|
+ "VirtualCameraY:" + VirtualCameraY + ","
|
|
+ "PropContainerZ:" + PropContainerZ + ","
|
|
+ "VirtualCameraZ:" + VirtualCameraZ + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|