68 lines
1.8 KiB
C#
68 lines
1.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 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);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// #ID
|
||
|
/// </summary>
|
||
|
public readonly int ID;
|
||
|
/// <summary>
|
||
|
/// 对应常数值
|
||
|
/// </summary>
|
||
|
public readonly string ConstantValue;
|
||
|
/// <summary>
|
||
|
/// 字符串值
|
||
|
/// </summary>
|
||
|
public readonly string ConstantString;
|
||
|
/// <summary>
|
||
|
/// 备注
|
||
|
/// </summary>
|
||
|
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 + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|