92 lines
3.4 KiB
C#
92 lines
3.4 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 StoreRandomData : Luban.BeanBase
|
||
|
{
|
||
|
public StoreRandomData(JSONNode _buf)
|
||
|
{
|
||
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||
|
{ if(!_buf["GiftID"].IsNumber) { throw new SerializationException(); } GiftID = _buf["GiftID"]; }
|
||
|
{ if(!_buf["GiftGold"].IsNumber) { throw new SerializationException(); } GiftGold = _buf["GiftGold"]; }
|
||
|
{ if(!_buf["GiftDiamond"].IsNumber) { throw new SerializationException(); } GiftDiamond = _buf["GiftDiamond"]; }
|
||
|
{ if(!_buf["Probability"].IsNumber) { throw new SerializationException(); } Probability = _buf["Probability"]; }
|
||
|
{ var __json0 = _buf["Discount"]; if(!__json0.IsArray) { throw new SerializationException(); } Discount = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Discount.Add(__v0); } }
|
||
|
{ var __json0 = _buf["Discountweight"]; if(!__json0.IsArray) { throw new SerializationException(); } Discountweight = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Discountweight.Add(__v0); } }
|
||
|
{ if(!_buf["Quantity"].IsNumber) { throw new SerializationException(); } Quantity = _buf["Quantity"]; }
|
||
|
}
|
||
|
|
||
|
public static StoreRandomData DeserializeStoreRandomData(JSONNode _buf)
|
||
|
{
|
||
|
return new BlacksmithData.StoreRandomData(_buf);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// #ID
|
||
|
/// </summary>
|
||
|
public readonly int ID;
|
||
|
/// <summary>
|
||
|
/// 道具ID
|
||
|
/// </summary>
|
||
|
public readonly int GiftID;
|
||
|
/// <summary>
|
||
|
/// 购买类型
|
||
|
/// </summary>
|
||
|
public readonly int GiftGold;
|
||
|
/// <summary>
|
||
|
/// 道具价格数量
|
||
|
/// </summary>
|
||
|
public readonly int GiftDiamond;
|
||
|
/// <summary>
|
||
|
/// 刷新权重
|
||
|
/// </summary>
|
||
|
public readonly int Probability;
|
||
|
/// <summary>
|
||
|
/// 折扣
|
||
|
/// </summary>
|
||
|
public readonly System.Collections.Generic.List<int> Discount;
|
||
|
/// <summary>
|
||
|
/// 折扣权重
|
||
|
/// </summary>
|
||
|
public readonly System.Collections.Generic.List<int> Discountweight;
|
||
|
/// <summary>
|
||
|
/// 显示固定数量
|
||
|
/// </summary>
|
||
|
public readonly int Quantity;
|
||
|
|
||
|
public const int __ID__ = 649953806;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "ID:" + ID + ","
|
||
|
+ "GiftID:" + GiftID + ","
|
||
|
+ "GiftGold:" + GiftGold + ","
|
||
|
+ "GiftDiamond:" + GiftDiamond + ","
|
||
|
+ "Probability:" + Probability + ","
|
||
|
+ "Discount:" + Luban.StringUtil.CollectionToString(Discount) + ","
|
||
|
+ "Discountweight:" + Luban.StringUtil.CollectionToString(Discountweight) + ","
|
||
|
+ "Quantity:" + Quantity + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|