//------------------------------------------------------------------------------ // // 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["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; } { 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["GuidanceGroupList"]; if(!__json0.IsArray) { throw new SerializationException(); } GuidanceGroupList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } GuidanceGroupList.Add(__v0); } } json = _json; PostInit(); } public EventPotionMain(int ID, string Prefab, string UIPanel, string InfoPanel, string Icon, int PackId, 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 GuidanceGroupList ) { this.ID = ID; this.Prefab = Prefab; this.UIPanel = UIPanel; this.InfoPanel = InfoPanel; this.Icon = Icon; this.PackId = PackId; this.ItemResource = ItemResource; this.PaintResource = PaintResource; this.Atlas = Atlas; this.ResourceID = ResourceID; this.BlockResourceID = BlockResourceID; this.StageList1 = StageList1; this.StageList2 = StageList2; this.GuidanceGroupList = GuidanceGroupList; 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 Icon { get; private set; } /// /// 读shop表 /// public int PackId { 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; } 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; } public System.Collections.Generic.List GuidanceGroupList { 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 + "," + "Icon:" + Icon + "," + "PackId:" + PackId + "," + "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) + "," + "GuidanceGroupList:" + Bright.Common.StringUtil.CollectionToString(GuidanceGroupList) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }