//------------------------------------------------------------------------------
//
// 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 EventBossFightInit : Bright.Config.BeanBase
{
public JSONNode json;
public EventBossFightInit(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
{ if(!_json["LoadingPanel"].IsString) { throw new SerializationException(); } LoadingPanel = _json["LoadingPanel"]; }
{ if(!_json["RewardPanel"].IsString) { throw new SerializationException(); } RewardPanel = _json["RewardPanel"]; }
{ if(!_json["EndingPanel"].IsString) { throw new SerializationException(); } EndingPanel = _json["EndingPanel"]; }
{ if(!_json["ReviewPanel"].IsString) { throw new SerializationException(); } ReviewPanel = _json["ReviewPanel"]; }
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
{ if(!_json["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["Addressable"].IsString) { throw new SerializationException(); } Addressable = _json["Addressable"]; }
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
{ if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; }
{ if(!_json["SpinRequire"].IsNumber) { throw new SerializationException(); } SpinRequire = _json["SpinRequire"]; }
{ 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); } }
{ if(!_json["ShieldCapacity"].IsNumber) { throw new SerializationException(); } ShieldCapacity = _json["ShieldCapacity"]; }
{ var __json0 = _json["SpinPointList"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinPointList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinPointList.Add(__v0); } }
{ var __json0 = _json["StageList"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList.Add(__v0); } }
{ var __json0 = _json["StageGroupList"]; if(!__json0.IsArray) { throw new SerializationException(); } StageGroupList = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { int __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } StageGroupList.Add(__v0); } }
{ if(!_json["WheelIcon"].IsString) { throw new SerializationException(); } WheelIcon = _json["WheelIcon"]; }
{ if(!_json["AssetBundle"].IsString) { throw new SerializationException(); } AssetBundle = _json["AssetBundle"]; }
{ var __json0 = _json["TargetGroupByHook"]; if(!__json0.IsArray) { throw new SerializationException(); } TargetGroupByHook = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } TargetGroupByHook.Add(__v0); } }
json = _json;
PostInit();
}
public EventBossFightInit(int ID, string UIPanel, string InfoPanel, string LoadingPanel, string RewardPanel, string EndingPanel, string ReviewPanel, int PackId, int SweepPackId, string Icon, string Addressable, string Atlas, int ItemID, int SpinRequire, System.Collections.Generic.List SpinMag, int ShieldCapacity, System.Collections.Generic.List SpinPointList, System.Collections.Generic.List StageList, System.Collections.Generic.List> StageGroupList, string WheelIcon, string AssetBundle, System.Collections.Generic.List TargetGroupByHook )
{
this.ID = ID;
this.UIPanel = UIPanel;
this.InfoPanel = InfoPanel;
this.LoadingPanel = LoadingPanel;
this.RewardPanel = RewardPanel;
this.EndingPanel = EndingPanel;
this.ReviewPanel = ReviewPanel;
this.PackId = PackId;
this.SweepPackId = SweepPackId;
this.Icon = Icon;
this.Addressable = Addressable;
this.Atlas = Atlas;
this.ItemID = ItemID;
this.SpinRequire = SpinRequire;
this.SpinMag = SpinMag;
this.ShieldCapacity = ShieldCapacity;
this.SpinPointList = SpinPointList;
this.StageList = StageList;
this.StageGroupList = StageGroupList;
this.WheelIcon = WheelIcon;
this.AssetBundle = AssetBundle;
this.TargetGroupByHook = TargetGroupByHook;
PostInit();
}
public static EventBossFightInit DeserializeEventBossFightInit(JSONNode _json)
{
return new EventBossFightInit(_json);
}
public int ID { get; private set; }
public string UIPanel { get; private set; }
public string InfoPanel { get; private set; }
public string LoadingPanel { get; private set; }
public string RewardPanel { get; private set; }
public string EndingPanel { get; private set; }
public string ReviewPanel { get; private set; }
///
/// 读shop表
///
public int PackId { get; private set; }
public int SweepPackId { get; private set; }
public string Icon { get; private set; }
public string Addressable { get; private set; }
public string Atlas { get; private set; }
///
/// item表id
///
public int ItemID { get; private set; }
public int SpinRequire { get; private set; }
public System.Collections.Generic.List SpinMag { get; private set; }
public int ShieldCapacity { get; private set; }
public System.Collections.Generic.List SpinPointList { get; private set; }
public System.Collections.Generic.List StageList { get; private set; }
///
/// 不同体力档位下的分组,对应stage主键
///
public System.Collections.Generic.List> StageGroupList { get; private set; }
public string WheelIcon { get; private set; }
public string AssetBundle { get; private set; }
///
/// 根据活动开始时,玩家当前的体力数值,采用不同任务列表
///
public System.Collections.Generic.List TargetGroupByHook { get; private set; }
public const int __ID__ = -1221891079;
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 + ","
+ "InfoPanel:" + InfoPanel + ","
+ "LoadingPanel:" + LoadingPanel + ","
+ "RewardPanel:" + RewardPanel + ","
+ "EndingPanel:" + EndingPanel + ","
+ "ReviewPanel:" + ReviewPanel + ","
+ "PackId:" + PackId + ","
+ "SweepPackId:" + SweepPackId + ","
+ "Icon:" + Icon + ","
+ "Addressable:" + Addressable + ","
+ "Atlas:" + Atlas + ","
+ "ItemID:" + ItemID + ","
+ "SpinRequire:" + SpinRequire + ","
+ "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + ","
+ "ShieldCapacity:" + ShieldCapacity + ","
+ "SpinPointList:" + Bright.Common.StringUtil.CollectionToString(SpinPointList) + ","
+ "StageList:" + Bright.Common.StringUtil.CollectionToString(StageList) + ","
+ "StageGroupList:" + Bright.Common.StringUtil.CollectionToString(StageGroupList) + ","
+ "WheelIcon:" + WheelIcon + ","
+ "AssetBundle:" + AssetBundle + ","
+ "TargetGroupByHook:" + Bright.Common.StringUtil.CollectionToString(TargetGroupByHook) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}