62 lines
2.0 KiB
C#
62 lines
2.0 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 LotteryPrizesData : Luban.BeanBase
|
|
{
|
|
public LotteryPrizesData(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["AwardID"].IsNumber) { throw new SerializationException(); } AwardID = _buf["AwardID"]; }
|
|
{ if(!_buf["AwardProbability"].IsNumber) { throw new SerializationException(); } AwardProbability = _buf["AwardProbability"]; }
|
|
{ var __json0 = _buf["Awardboxid"]; if(!__json0.IsArray) { throw new SerializationException(); } Awardboxid = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Awardboxid.Add(__v0); } }
|
|
}
|
|
|
|
public static LotteryPrizesData DeserializeLotteryPrizesData(JSONNode _buf)
|
|
{
|
|
return new BlacksmithData.LotteryPrizesData(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 奖励ID
|
|
/// </summary>
|
|
public readonly int AwardID;
|
|
/// <summary>
|
|
/// 随机概率
|
|
/// </summary>
|
|
public readonly int AwardProbability;
|
|
/// <summary>
|
|
/// 道具所在箱子ID
|
|
/// </summary>
|
|
public readonly System.Collections.Generic.List<int> Awardboxid;
|
|
|
|
public const int __ID__ = 911571284;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "AwardID:" + AwardID + ","
|
|
+ "AwardProbability:" + AwardProbability + ","
|
|
+ "Awardboxid:" + Luban.StringUtil.CollectionToString(Awardboxid) + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|