//------------------------------------------------------------------------------
//
// 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 EventMowForTreasureMain : Bright.Config.BeanBase
{
public JSONNode json;
public EventMowForTreasureMain(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; }
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
{ if(!_json["GuidePanel"].IsString) { throw new SerializationException(); } GuidePanel = _json["GuidePanel"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["ChainPackID"].IsNumber) { throw new SerializationException(); } ChainPackID = _json["ChainPackID"]; }
{ if(!_json["PackPackID"].IsNumber) { throw new SerializationException(); } PackPackID = _json["PackPackID"]; }
{ if(!_json["ChainPackPanel"].IsString) { throw new SerializationException(); } ChainPackPanel = _json["ChainPackPanel"]; }
{ if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; }
{ if(!_json["AdPackId"].IsNumber) { throw new SerializationException(); } AdPackId = _json["AdPackId"]; }
{ var __json0 = _json["ToolInitCount"]; if(!__json0.IsArray) { throw new SerializationException(); } ToolInitCount = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ToolInitCount.Add(__v0); } }
{ var __json0 = _json["ToolExchangeRate"]; if(!__json0.IsArray) { throw new SerializationException(); } ToolExchangeRate = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ToolExchangeRate.Add(__v0); } }
{ var __json0 = _json["ToolConfigList"]; if(!__json0.IsArray) { throw new SerializationException(); } ToolConfigList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ToolConfigList.Add(__v0); } }
{ var __json0 = _json["FixedStageList"]; if(!__json0.IsArray) { throw new SerializationException(); } FixedStageList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FixedStageList.Add(__v0); } }
{ var __json0 = _json["LoopStageList"]; if(!__json0.IsArray) { throw new SerializationException(); } LoopStageList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } LoopStageList.Add(__v0); } }
{ var __json0 = _json["CollectionID"]; if(!__json0.IsArray) { throw new SerializationException(); } CollectionID = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CollectionID.Add(__v0); } }
json = _json;
PostInit();
}
public EventMowForTreasureMain(int ID, int ItemID, string UIPanel, string InfoPanel, string GuidePanel, string Icon, int ChainPackID, int PackPackID, string ChainPackPanel, string PackPanel, int AdPackId, System.Collections.Generic.List ToolInitCount, System.Collections.Generic.List ToolExchangeRate, System.Collections.Generic.List ToolConfigList, System.Collections.Generic.List FixedStageList, System.Collections.Generic.List LoopStageList, System.Collections.Generic.List CollectionID )
{
this.ID = ID;
this.ItemID = ItemID;
this.UIPanel = UIPanel;
this.InfoPanel = InfoPanel;
this.GuidePanel = GuidePanel;
this.Icon = Icon;
this.ChainPackID = ChainPackID;
this.PackPackID = PackPackID;
this.ChainPackPanel = ChainPackPanel;
this.PackPanel = PackPanel;
this.AdPackId = AdPackId;
this.ToolInitCount = ToolInitCount;
this.ToolExchangeRate = ToolExchangeRate;
this.ToolConfigList = ToolConfigList;
this.FixedStageList = FixedStageList;
this.LoopStageList = LoopStageList;
this.CollectionID = CollectionID;
PostInit();
}
public static EventMowForTreasureMain DeserializeEventMowForTreasureMain(JSONNode _json)
{
return new EventMowForTreasureMain(_json);
}
public int ID { get; private set; }
///
/// item表主键
///
public int ItemID { get; private set; }
public string UIPanel { get; private set; }
public string InfoPanel { get; private set; }
public string GuidePanel { get; private set; }
public string Icon { get; private set; }
///
/// 对应shop.packagemanager主键
///
public int ChainPackID { get; private set; }
///
/// 对应shop.packagemanager主键
///
public int PackPackID { get; private set; }
public string ChainPackPanel { get; private set; }
public string PackPanel { get; private set; }
///
/// 读shop表
///
public int AdPackId { get; private set; }
///
/// 3个工具的初始数量
///
public System.Collections.Generic.List ToolInitCount { get; private set; }
///
/// 第2、3个工具分别能用多少个第1个工具进行兑换
///
public System.Collections.Generic.List ToolExchangeRate { get; private set; }
///
/// 3个工具的配置
///
public System.Collections.Generic.List ToolConfigList { get; private set; }
///
/// 活动开始时,固定走这几个关卡
///
public System.Collections.Generic.List FixedStageList { get; private set; }
///
/// 这3个关卡循环
///
public System.Collections.Generic.List LoopStageList { get; private set; }
///
/// 分别对应铜,银,金三种道具触发奖励的需求
///
public System.Collections.Generic.List CollectionID { get; private set; }
public const int __ID__ = 1620598966;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "ItemID:" + ItemID + ","
+ "UIPanel:" + UIPanel + ","
+ "InfoPanel:" + InfoPanel + ","
+ "GuidePanel:" + GuidePanel + ","
+ "Icon:" + Icon + ","
+ "ChainPackID:" + ChainPackID + ","
+ "PackPackID:" + PackPackID + ","
+ "ChainPackPanel:" + ChainPackPanel + ","
+ "PackPanel:" + PackPanel + ","
+ "AdPackId:" + AdPackId + ","
+ "ToolInitCount:" + Bright.Common.StringUtil.CollectionToString(ToolInitCount) + ","
+ "ToolExchangeRate:" + Bright.Common.StringUtil.CollectionToString(ToolExchangeRate) + ","
+ "ToolConfigList:" + Bright.Common.StringUtil.CollectionToString(ToolConfigList) + ","
+ "FixedStageList:" + Bright.Common.StringUtil.CollectionToString(FixedStageList) + ","
+ "LoopStageList:" + Bright.Common.StringUtil.CollectionToString(LoopStageList) + ","
+ "CollectionID:" + Bright.Common.StringUtil.CollectionToString(CollectionID) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}