//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Luban;
using SimpleJSON;
namespace cfg.BlacksmithData
{
public sealed partial class ShopBuyData : Luban.BeanBase
{
public ShopBuyData(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["Guest"].IsString) { throw new SerializationException(); } Guest = _buf["Guest"]; }
{ if(!_buf["Guesticon"].IsString) { throw new SerializationException(); } Guesticon = _buf["Guesticon"]; }
{ if(!_buf["Guestyes"].IsString) { throw new SerializationException(); } Guestyes = _buf["Guestyes"]; }
{ if(!_buf["Guestno"].IsString) { throw new SerializationException(); } Guestno = _buf["Guestno"]; }
}
public static ShopBuyData DeserializeShopBuyData(JSONNode _buf)
{
return new BlacksmithData.ShopBuyData(_buf);
}
///
/// ID
///
public readonly int ID;
///
/// 客人名称
///
public readonly string Guest;
///
/// 客人立绘
///
public readonly string Guesticon;
///
/// 给与武器成功的文本
///
public readonly string Guestyes;
///
/// 给与武器失败的文本
///
public readonly string Guestno;
public const int __ID__ = -476459334;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Guest:" + Guest + ","
+ "Guesticon:" + Guesticon + ","
+ "Guestyes:" + Guestyes + ","
+ "Guestno:" + Guestno + ","
+ "}";
}
}
}