//------------------------------------------------------------------------------
//
// 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 Luban;
using SimpleJSON;
namespace cfg.BlacksmithData
{
public sealed partial class MainData : Luban.BeanBase
{
public MainData(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["ConstantValue"].IsString) { throw new SerializationException(); } ConstantValue = _buf["ConstantValue"]; }
{ if(!_buf["ConstantString"].IsString) { throw new SerializationException(); } ConstantString = _buf["ConstantString"]; }
{ if(!_buf["Commant"].IsString) { throw new SerializationException(); } Commant = _buf["Commant"]; }
}
public static MainData DeserializeMainData(JSONNode _buf)
{
return new BlacksmithData.MainData(_buf);
}
///
/// #ID
///
public readonly int ID;
///
/// 对应常数值
///
public readonly string ConstantValue;
///
/// 字符串值
///
public readonly string ConstantString;
///
/// 备注
///
public readonly string Commant;
public const int __ID__ = -916674109;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "ConstantValue:" + ConstantValue + ","
+ "ConstantString:" + ConstantString + ","
+ "Commant:" + Commant + ","
+ "}";
}
}
}