//------------------------------------------------------------------------------
//
// 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 EventPartnerMineMain : Bright.Config.BeanBase
{
public JSONNode json;
public EventPartnerMineMain(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
{ if(!_json["GamePanel"].IsString) { throw new SerializationException(); } GamePanel = _json["GamePanel"]; }
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
{ if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; }
{ if(!_json["TokenExchangeId"].IsNumber) { throw new SerializationException(); } TokenExchangeId = _json["TokenExchangeId"]; }
{ if(!_json["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; }
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ var __json0 = _json["Addressable"]; if(!__json0.IsArray) { throw new SerializationException(); } Addressable = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Addressable.Add(__v0); } }
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
{ if(!_json["InitID"].IsNumber) { throw new SerializationException(); } InitID = _json["InitID"]; }
{ if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; }
{ if(!_json["SpinRequire"].IsNumber) { throw new SerializationException(); } SpinRequire = _json["SpinRequire"]; }
{ if(!_json["MaxColumn"].IsNumber) { throw new SerializationException(); } MaxColumn = _json["MaxColumn"]; }
{ if(!_json["MinePoint"].IsNumber) { throw new SerializationException(); } MinePoint = _json["MinePoint"]; }
{ var __json0 = _json["BreakRangePoint"]; if(!__json0.IsArray) { throw new SerializationException(); } BreakRangePoint = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BreakRangePoint.Add(__v0); } }
{ var __json0 = _json["MinePointShow"]; if(!__json0.IsArray) { throw new SerializationException(); } MinePointShow = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MinePointShow.Add(__v0); } }
{ var __json0 = _json["SpinMag"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinMag = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinMag.Add(__v0); } }
{ var __json0 = _json["SpinPoint"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinPoint = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinPoint.Add(__v0); } }
{ var __json0 = _json["StagePoint"]; if(!__json0.IsArray) { throw new SerializationException(); } StagePoint = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StagePoint.Add(__v0); } }
{ var __json0 = _json["StageReward"]; if(!__json0.IsArray) { throw new SerializationException(); } StageReward = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageReward.Add(__v0); } }
{ if(!_json["Reward"].IsNumber) { throw new SerializationException(); } Reward = _json["Reward"]; }
{ if(!_json["InvitationCount"].IsNumber) { throw new SerializationException(); } InvitationCount = _json["InvitationCount"]; }
json = _json;
PostInit();
}
public EventPartnerMineMain(int ID, string UIPanel, string GamePanel, string InfoPanel, string PackPanel, int TokenExchangeId, int SweepPackId, int PackId, string Icon, System.Collections.Generic.List Addressable, string Atlas, int InitID, int ItemID, int SpinRequire, int MaxColumn, int MinePoint, System.Collections.Generic.List BreakRangePoint, System.Collections.Generic.List MinePointShow, System.Collections.Generic.List SpinMag, System.Collections.Generic.List SpinPoint, System.Collections.Generic.List StagePoint, System.Collections.Generic.List StageReward, int Reward, int InvitationCount )
{
this.ID = ID;
this.UIPanel = UIPanel;
this.GamePanel = GamePanel;
this.InfoPanel = InfoPanel;
this.PackPanel = PackPanel;
this.TokenExchangeId = TokenExchangeId;
this.SweepPackId = SweepPackId;
this.PackId = PackId;
this.Icon = Icon;
this.Addressable = Addressable;
this.Atlas = Atlas;
this.InitID = InitID;
this.ItemID = ItemID;
this.SpinRequire = SpinRequire;
this.MaxColumn = MaxColumn;
this.MinePoint = MinePoint;
this.BreakRangePoint = BreakRangePoint;
this.MinePointShow = MinePointShow;
this.SpinMag = SpinMag;
this.SpinPoint = SpinPoint;
this.StagePoint = StagePoint;
this.StageReward = StageReward;
this.Reward = Reward;
this.InvitationCount = InvitationCount;
PostInit();
}
public static EventPartnerMineMain DeserializeEventPartnerMineMain(JSONNode _json)
{
return new EventPartnerMineMain(_json);
}
public int ID { get; private set; }
///
/// 主界面
///
public string UIPanel { get; private set; }
///
/// 玩法界面
///
public string GamePanel { get; private set; }
///
/// 玩法说明
///
public string InfoPanel { get; private set; }
public string PackPanel { get; private set; }
///
/// 代币兑换配置
///
public int TokenExchangeId { get; private set; }
public int SweepPackId { get; private set; }
///
/// 读shop表
///
public int PackId { get; private set; }
public string Icon { get; private set; }
public System.Collections.Generic.List Addressable { get; private set; }
public string Atlas { get; private set; }
///
/// Init表id
///
public int InitID { get; private set; }
///
/// item表id
///
public int ItemID { get; private set; }
public int SpinRequire { get; private set; }
///
/// 数字对应列数
///
public int MaxColumn { get; private set; }
///
/// 一个矿石对应多少积分
///
public int MinePoint { get; private set; }
///
/// 0为起点
///
public System.Collections.Generic.List BreakRangePoint { get; private set; }
///
/// 每个区域一列有多少个
///
public System.Collections.Generic.List MinePointShow { get; private set; }
public System.Collections.Generic.List SpinMag { get; private set; }
///
/// 对应SpinPoint
///
public System.Collections.Generic.List SpinPoint { get; private set; }
public System.Collections.Generic.List StagePoint { get; private set; }
public System.Collections.Generic.List StageReward { get; private set; }
///
/// ID
///
public int Reward { get; private set; }
public int InvitationCount { get; private set; }
public const int __ID__ = 411559866;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "UIPanel:" + UIPanel + ","
+ "GamePanel:" + GamePanel + ","
+ "InfoPanel:" + InfoPanel + ","
+ "PackPanel:" + PackPanel + ","
+ "TokenExchangeId:" + TokenExchangeId + ","
+ "SweepPackId:" + SweepPackId + ","
+ "PackId:" + PackId + ","
+ "Icon:" + Icon + ","
+ "Addressable:" + Bright.Common.StringUtil.CollectionToString(Addressable) + ","
+ "Atlas:" + Atlas + ","
+ "InitID:" + InitID + ","
+ "ItemID:" + ItemID + ","
+ "SpinRequire:" + SpinRequire + ","
+ "MaxColumn:" + MaxColumn + ","
+ "MinePoint:" + MinePoint + ","
+ "BreakRangePoint:" + Bright.Common.StringUtil.CollectionToString(BreakRangePoint) + ","
+ "MinePointShow:" + Bright.Common.StringUtil.CollectionToString(MinePointShow) + ","
+ "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + ","
+ "SpinPoint:" + Bright.Common.StringUtil.CollectionToString(SpinPoint) + ","
+ "StagePoint:" + Bright.Common.StringUtil.CollectionToString(StagePoint) + ","
+ "StageReward:" + Bright.Common.StringUtil.CollectionToString(StageReward) + ","
+ "Reward:" + Reward + ","
+ "InvitationCount:" + InvitationCount + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}