//------------------------------------------------------------------------------
//
// 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 EventPotionMain : Bright.Config.BeanBase
{
public JSONNode json;
public EventPotionMain(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Prefab"].IsString) { throw new SerializationException(); } Prefab = _json["Prefab"]; }
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
{ if(!_json["RewardPanel"].IsString) { throw new SerializationException(); } RewardPanel = _json["RewardPanel"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
{ if(!_json["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; }
{ var __json0 = _json["ItemResource"]; if(!__json0.IsArray) { throw new SerializationException(); } ItemResource = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } ItemResource.Add(__v0); } }
{ var __json0 = _json["PaintResource"]; if(!__json0.IsArray) { throw new SerializationException(); } PaintResource = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } PaintResource.Add(__v0); } }
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
{ var __json0 = _json["ResourceID"]; if(!__json0.IsArray) { throw new SerializationException(); } ResourceID = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ResourceID.Add(__v0); } }
{ var __json0 = _json["BlockResourceID"]; if(!__json0.IsArray) { throw new SerializationException(); } BlockResourceID = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BlockResourceID.Add(__v0); } }
{ var __json0 = _json["StageList1"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList1 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList1.Add(__v0); } }
{ var __json0 = _json["StageList2"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList2.Add(__v0); } }
{ var __json0 = _json["ExpStageList1"]; if(!__json0.IsArray) { throw new SerializationException(); } ExpStageList1 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExpStageList1.Add(__v0); } }
{ var __json0 = _json["ExpStageList2"]; if(!__json0.IsArray) { throw new SerializationException(); } ExpStageList2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExpStageList2.Add(__v0); } }
json = _json;
PostInit();
}
public EventPotionMain(int ID, string Prefab, string UIPanel, string InfoPanel, string RewardPanel, string Icon, int PackId, int SweepPackId, System.Collections.Generic.List ItemResource, System.Collections.Generic.List PaintResource, string Atlas, System.Collections.Generic.List ResourceID, System.Collections.Generic.List BlockResourceID, System.Collections.Generic.List StageList1, System.Collections.Generic.List StageList2, System.Collections.Generic.List ExpStageList1, System.Collections.Generic.List ExpStageList2 )
{
this.ID = ID;
this.Prefab = Prefab;
this.UIPanel = UIPanel;
this.InfoPanel = InfoPanel;
this.RewardPanel = RewardPanel;
this.Icon = Icon;
this.PackId = PackId;
this.SweepPackId = SweepPackId;
this.ItemResource = ItemResource;
this.PaintResource = PaintResource;
this.Atlas = Atlas;
this.ResourceID = ResourceID;
this.BlockResourceID = BlockResourceID;
this.StageList1 = StageList1;
this.StageList2 = StageList2;
this.ExpStageList1 = ExpStageList1;
this.ExpStageList2 = ExpStageList2;
PostInit();
}
public static EventPotionMain DeserializeEventPotionMain(JSONNode _json)
{
return new EventPotionMain(_json);
}
public int ID { get; private set; }
public string Prefab { get; private set; }
public string UIPanel { get; private set; }
public string InfoPanel { get; private set; }
public string RewardPanel { get; private set; }
public string Icon { get; private set; }
///
/// 读shop表
///
public int PackId { get; private set; }
///
/// 读shop表
///
public int SweepPackId { get; private set; }
///
/// Spine的颜色
///
public System.Collections.Generic.List ItemResource { get; private set; }
public System.Collections.Generic.List PaintResource { get; private set; }
public string Atlas { get; private set; }
///
/// 一直这么配吧,忘了干啥的
///
public System.Collections.Generic.List ResourceID { get; private set; }
///
/// 读EventPotionBlock
///
public System.Collections.Generic.List BlockResourceID { get; private set; }
///
/// 调用EventPotionStage表
///
public System.Collections.Generic.List StageList1 { get; private set; }
///
/// 调用EventPotionStage表
///
public System.Collections.Generic.List StageList2 { get; private set; }
///
/// 调用EventPotionStage表
///
public System.Collections.Generic.List ExpStageList1 { get; private set; }
///
/// 调用EventPotionStage表
///
public System.Collections.Generic.List ExpStageList2 { get; private set; }
public const int __ID__ = 1555615750;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Prefab:" + Prefab + ","
+ "UIPanel:" + UIPanel + ","
+ "InfoPanel:" + InfoPanel + ","
+ "RewardPanel:" + RewardPanel + ","
+ "Icon:" + Icon + ","
+ "PackId:" + PackId + ","
+ "SweepPackId:" + SweepPackId + ","
+ "ItemResource:" + Bright.Common.StringUtil.CollectionToString(ItemResource) + ","
+ "PaintResource:" + Bright.Common.StringUtil.CollectionToString(PaintResource) + ","
+ "Atlas:" + Atlas + ","
+ "ResourceID:" + Bright.Common.StringUtil.CollectionToString(ResourceID) + ","
+ "BlockResourceID:" + Bright.Common.StringUtil.CollectionToString(BlockResourceID) + ","
+ "StageList1:" + Bright.Common.StringUtil.CollectionToString(StageList1) + ","
+ "StageList2:" + Bright.Common.StringUtil.CollectionToString(StageList2) + ","
+ "ExpStageList1:" + Bright.Common.StringUtil.CollectionToString(ExpStageList1) + ","
+ "ExpStageList2:" + Bright.Common.StringUtil.CollectionToString(ExpStageList2) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}