//------------------------------------------------------------------------------
//
// 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 EventSlapInit : Bright.Config.BeanBase
{
public JSONNode json;
public EventSlapInit(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
{ if(!_json["StageReviewPanel"].IsString) { throw new SerializationException(); } StageReviewPanel = _json["StageReviewPanel"]; }
{ if(!_json["LoadingPanel"].IsString) { throw new SerializationException(); } LoadingPanel = _json["LoadingPanel"]; }
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
{ if(!_json["EventPreviewPanel"].IsString) { throw new SerializationException(); } EventPreviewPanel = _json["EventPreviewPanel"]; }
{ if(!_json["RewardPanel"].IsString) { throw new SerializationException(); } RewardPanel = _json["RewardPanel"]; }
{ if(!_json["TvPopUpPanel"].IsString) { throw new SerializationException(); } TvPopUpPanel = _json["TvPopUpPanel"]; }
{ var __json0 = _json["SpinachList"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinachList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinachList.Add(__v0); } }
{ if(!_json["InitialStage"].IsNumber) { throw new SerializationException(); } InitialStage = _json["InitialStage"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["PackID"].IsNumber) { throw new SerializationException(); } PackID = _json["PackID"]; }
{ if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; }
json = _json;
PostInit();
}
public EventSlapInit(int ID, string UIPanel, string StageReviewPanel, string LoadingPanel, string InfoPanel, string EventPreviewPanel, string RewardPanel, string TvPopUpPanel, System.Collections.Generic.List SpinachList, int InitialStage, string Icon, int PackID, string PackPanel )
{
this.ID = ID;
this.UIPanel = UIPanel;
this.StageReviewPanel = StageReviewPanel;
this.LoadingPanel = LoadingPanel;
this.InfoPanel = InfoPanel;
this.EventPreviewPanel = EventPreviewPanel;
this.RewardPanel = RewardPanel;
this.TvPopUpPanel = TvPopUpPanel;
this.SpinachList = SpinachList;
this.InitialStage = InitialStage;
this.Icon = Icon;
this.PackID = PackID;
this.PackPanel = PackPanel;
PostInit();
}
public static EventSlapInit DeserializeEventSlapInit(JSONNode _json)
{
return new EventSlapInit(_json);
}
public int ID { get; private set; }
public string UIPanel { get; private set; }
public string StageReviewPanel { get; private set; }
public string LoadingPanel { get; private set; }
public string InfoPanel { get; private set; }
public string EventPreviewPanel { get; private set; }
public string RewardPanel { get; private set; }
public string TvPopUpPanel { get; private set; }
public System.Collections.Generic.List SpinachList { get; private set; }
public int InitialStage { get; private set; }
public string Icon { get; private set; }
public int PackID { get; private set; }
public string PackPanel { get; private set; }
public const int __ID__ = 1693723154;
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 + ","
+ "StageReviewPanel:" + StageReviewPanel + ","
+ "LoadingPanel:" + LoadingPanel + ","
+ "InfoPanel:" + InfoPanel + ","
+ "EventPreviewPanel:" + EventPreviewPanel + ","
+ "RewardPanel:" + RewardPanel + ","
+ "TvPopUpPanel:" + TvPopUpPanel + ","
+ "SpinachList:" + Bright.Common.StringUtil.CollectionToString(SpinachList) + ","
+ "InitialStage:" + InitialStage + ","
+ "Icon:" + Icon + ","
+ "PackID:" + PackID + ","
+ "PackPanel:" + PackPanel + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}