//------------------------------------------------------------------------------
//
// 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 Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
public sealed partial class EventJigsawPuzzleRound : Bright.Config.BeanBase
{
public JSONNode json;
public EventJigsawPuzzleRound(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["PictureCount"].IsNumber) { throw new SerializationException(); } PictureCount = _json["PictureCount"]; }
{ var __json0 = _json["PictureList"]; if(!__json0.IsArray) { throw new SerializationException(); } PictureList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PictureList.Add(__v0); } }
{ var __json0 = _json["PuzzleRewardList"]; if(!__json0.IsArray) { throw new SerializationException(); } PuzzleRewardList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PuzzleRewardList.Add(__v0); } }
{ var __json0 = _json["ProbList"]; if(!__json0.IsArray) { throw new SerializationException(); } ProbList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ProbList.Add(__v0); } }
{ var __json0 = _json["PictureRewardList"]; if(!__json0.IsArray) { throw new SerializationException(); } PictureRewardList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PictureRewardList.Add(__v0); } }
{ if(!_json["FinalReward"].IsNumber) { throw new SerializationException(); } FinalReward = _json["FinalReward"]; }
{ if(!_json["SameFragmentExchange"].IsNumber) { throw new SerializationException(); } SameFragmentExchange = _json["SameFragmentExchange"]; }
json = _json;
PostInit();
}
public EventJigsawPuzzleRound(int ID, int PictureCount, System.Collections.Generic.List PictureList, System.Collections.Generic.List PuzzleRewardList, System.Collections.Generic.List ProbList, System.Collections.Generic.List PictureRewardList, int FinalReward, int SameFragmentExchange )
{
this.ID = ID;
this.PictureCount = PictureCount;
this.PictureList = PictureList;
this.PuzzleRewardList = PuzzleRewardList;
this.ProbList = ProbList;
this.PictureRewardList = PictureRewardList;
this.FinalReward = FinalReward;
this.SameFragmentExchange = SameFragmentExchange;
PostInit();
}
public static EventJigsawPuzzleRound DeserializeEventJigsawPuzzleRound(JSONNode _json)
{
return new EventJigsawPuzzleRound(_json);
}
public int ID { get; private set; }
///
/// 从3张拼图到5张拼图
///
public int PictureCount { get; private set; }
///
/// 从3张拼图到5张拼图
///
public System.Collections.Generic.List PictureList { get; private set; }
///
/// 对应EventJigsawPuzzleReward
///
public System.Collections.Generic.List PuzzleRewardList { get; private set; }
///
/// 对应EventJigsawPuzzleExProb主键
///
public System.Collections.Generic.List ProbList { get; private set; }
///
/// 对应PictureList,每个拼图完成后的Drop表主键
///
public System.Collections.Generic.List PictureRewardList { get; private set; }
///
/// 对应Drop表主键
///
public int FinalReward { get; private set; }
///
/// 多少个相同碎片会兑换1个新碎片
///
public int SameFragmentExchange { get; private set; }
public const int __ID__ = -1527880203;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "PictureCount:" + PictureCount + ","
+ "PictureList:" + Bright.Common.StringUtil.CollectionToString(PictureList) + ","
+ "PuzzleRewardList:" + Bright.Common.StringUtil.CollectionToString(PuzzleRewardList) + ","
+ "ProbList:" + Bright.Common.StringUtil.CollectionToString(ProbList) + ","
+ "PictureRewardList:" + Bright.Common.StringUtil.CollectionToString(PictureRewardList) + ","
+ "FinalReward:" + FinalReward + ","
+ "SameFragmentExchange:" + SameFragmentExchange + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}