110 lines
3.3 KiB
C#
Raw Permalink Normal View History

2025-06-07 17:43:34 +08:00
//------------------------------------------------------------------------------
// <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 Store : Luban.BeanBase
{
public Store(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["order"].IsNumber) { throw new SerializationException(); } Order = _buf["order"]; }
{ if(!_buf["discount"].IsString) { throw new SerializationException(); } Discount = _buf["discount"]; }
{ if(!_buf["type"].IsNumber) { throw new SerializationException(); } Type = _buf["type"]; }
{ if(!_buf["buy_consume"].IsNumber) { throw new SerializationException(); } BuyConsume = _buf["buy_consume"]; }
{ if(!_buf["money"].IsNumber) { throw new SerializationException(); } Money = _buf["money"]; }
{ if(!_buf["item_id"].IsNumber) { throw new SerializationException(); } ItemId = _buf["item_id"]; }
{ if(!_buf["count"].IsNumber) { throw new SerializationException(); } Count = _buf["count"]; }
{ if(!_buf["underline_count"].IsNumber) { throw new SerializationException(); } UnderlineCount = _buf["underline_count"]; }
}
public static Store DeserializeStore(JSONNode _buf)
{
return new data.Store(_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 int Order;
/// <summary>
/// 折扣文本
/// </summary>
public readonly string Discount;
/// <summary>
/// 类型
/// </summary>
public readonly int Type;
/// <summary>
/// 购买消耗
/// </summary>
public readonly int BuyConsume;
/// <summary>
/// 价格
/// </summary>
public readonly int Money;
/// <summary>
/// 道具id
/// </summary>
public readonly int ItemId;
/// <summary>
/// 商品数量
/// </summary>
public readonly int Count;
/// <summary>
/// 划线数量
/// </summary>
public readonly int UnderlineCount;
public const int __ID__ = 187301245;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "nameId:" + NameId + ","
+ "order:" + Order + ","
+ "discount:" + Discount + ","
+ "type:" + Type + ","
+ "buyConsume:" + BuyConsume + ","
+ "money:" + Money + ","
+ "itemId:" + ItemId + ","
+ "count:" + Count + ","
+ "underlineCount:" + UnderlineCount + ","
+ "}";
}
}
}