56 lines
1.2 KiB
C#
56 lines
1.2 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 TableConfig
|
||
|
{
|
||
|
public sealed partial class Item : Luban.BeanBase
|
||
|
{
|
||
|
public Item(JSONNode _buf)
|
||
|
{
|
||
|
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||
|
{ if(!_buf["Num"].IsNumber) { throw new SerializationException(); } Num = _buf["Num"]; }
|
||
|
}
|
||
|
|
||
|
public static Item DeserializeItem(JSONNode _buf)
|
||
|
{
|
||
|
return new Item(_buf);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 道具id
|
||
|
/// </summary>
|
||
|
public readonly int Id;
|
||
|
/// <summary>
|
||
|
/// 道具数量
|
||
|
/// </summary>
|
||
|
public readonly int Num;
|
||
|
|
||
|
public const int __ID__ = 2289459;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "Id:" + Id + ","
|
||
|
+ "Num:" + Num + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|