68 lines
1.7 KiB
C#
68 lines
1.7 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.data
|
|
{
|
|
public sealed partial class PopPromptbox : Luban.BeanBase
|
|
{
|
|
public PopPromptbox(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
|
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
|
|
{ if(!_buf["name_id"].IsNumber) { throw new SerializationException(); } NameId = _buf["name_id"]; }
|
|
{ if(!_buf["txt"].IsString) { throw new SerializationException(); } Txt = _buf["txt"]; }
|
|
}
|
|
|
|
public static PopPromptbox DeserializePopPromptbox(JSONNode _buf)
|
|
{
|
|
return new data.PopPromptbox(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// id
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 名称(只是方便查看)
|
|
/// </summary>
|
|
public readonly string Name;
|
|
/// <summary>
|
|
/// 名称id
|
|
/// </summary>
|
|
public readonly int NameId;
|
|
/// <summary>
|
|
/// 折扣文本
|
|
/// </summary>
|
|
public readonly string Txt;
|
|
|
|
public const int __ID__ = 1095517818;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "name:" + Name + ","
|
|
+ "nameId:" + NameId + ","
|
|
+ "txt:" + Txt + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|