//------------------------------------------------------------------------------
//
// 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 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"]; }
json = _json;
PostInit();
}
public DiggingDisplayInit(int Height, float PropContainerY, float VirtualCameraY )
{
this.Height = Height;
this.PropContainerY = PropContainerY;
this.VirtualCameraY = VirtualCameraY;
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; }
public const int __ID__ = 934646581;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Height:" + Height + ","
+ "PropContainerY:" + PropContainerY + ","
+ "VirtualCameraY:" + VirtualCameraY + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}