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 PrizeDrawData : Luban.BeanBase
|
|
{
|
|
public PrizeDrawData(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
|
{ if(!_buf["Boxtype"].IsNumber) { throw new SerializationException(); } Boxtype = _buf["Boxtype"]; }
|
|
{ if(!_buf["Boxcost"].IsNumber) { throw new SerializationException(); } Boxcost = _buf["Boxcost"]; }
|
|
{ if(!_buf["Boxnumber"].IsNumber) { throw new SerializationException(); } Boxnumber = _buf["Boxnumber"]; }
|
|
}
|
|
|
|
public static PrizeDrawData DeserializePrizeDrawData(JSONNode _buf)
|
|
{
|
|
return new BlacksmithData.PrizeDrawData(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// #ID
|
|
/// </summary>
|
|
public readonly int ID;
|
|
/// <summary>
|
|
/// 抽奖消耗类型
|
|
/// </summary>
|
|
public readonly int Boxtype;
|
|
/// <summary>
|
|
/// 消耗
|
|
/// </summary>
|
|
public readonly int Boxcost;
|
|
/// <summary>
|
|
/// 个数
|
|
/// </summary>
|
|
public readonly int Boxnumber;
|
|
|
|
public const int __ID__ = 383608960;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Boxtype:" + Boxtype + ","
|
|
+ "Boxcost:" + Boxcost + ","
|
|
+ "Boxnumber:" + Boxnumber + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|