2024-11-26 15:44:50 +08:00

80 lines
2.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 cfg
{
public sealed partial class BTask : Luban.BeanBase
{
public BTask(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["Tasktype"].IsNumber) { throw new SerializationException(); } Tasktype = _buf["Tasktype"]; }
{ if(!_buf["Targettype"].IsNumber) { throw new SerializationException(); } Targettype = _buf["Targettype"]; }
{ if(!_buf["Targetid"].IsNumber) { throw new SerializationException(); } Targetid = _buf["Targetid"]; }
{ if(!_buf["Targetnumber"].IsNumber) { throw new SerializationException(); } Targetnumber = _buf["Targetnumber"]; }
{ if(!_buf["Describe"].IsNumber) { throw new SerializationException(); } Describe = _buf["Describe"]; }
}
public static BTask DeserializeBTask(JSONNode _buf)
{
return new BTask(_buf);
}
/// <summary>
/// #ID
/// </summary>
public readonly int ID;
/// <summary>
/// 任务类型
/// </summary>
public readonly int Tasktype;
/// <summary>
/// 目标类型
/// </summary>
public readonly int Targettype;
/// <summary>
/// 目标ID
/// </summary>
public readonly int Targetid;
/// <summary>
/// 目标数量
/// </summary>
public readonly int Targetnumber;
/// <summary>
/// 描述文字
/// </summary>
public readonly int Describe;
public const int __ID__ = 63551719;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Tasktype:" + Tasktype + ","
+ "Targettype:" + Targettype + ","
+ "Targetid:" + Targetid + ","
+ "Targetnumber:" + Targetnumber + ","
+ "Describe:" + Describe + ","
+ "}";
}
}
}