//------------------------------------------------------------------------------ // // 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 EventSmashMain : Bright.Config.BeanBase { public JSONNode json; public EventSmashMain(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; } { 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["BattlePassId"].IsNumber) { throw new SerializationException(); } BattlePassId = _json["BattlePassId"]; } { if(!_json["BattlePassPanel"].IsString) { throw new SerializationException(); } BattlePassPanel = _json["BattlePassPanel"]; } { if(!_json["PackID"].IsNumber) { throw new SerializationException(); } PackID = _json["PackID"]; } { if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; } { var __json0 = _json["CollectionIcon"]; if(!__json0.IsArray) { throw new SerializationException(); } CollectionIcon = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } CollectionIcon.Add(__v0); } } { var __json0 = _json["StageItemProb1"]; if(!__json0.IsArray) { throw new SerializationException(); } StageItemProb1 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageItemProb1.Add(__v0); } } { var __json0 = _json["StageItemProb2"]; if(!__json0.IsArray) { throw new SerializationException(); } StageItemProb2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageItemProb2.Add(__v0); } } { var __json0 = _json["StageItemIcon"]; if(!__json0.IsArray) { throw new SerializationException(); } StageItemIcon = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } StageItemIcon.Add(__v0); } } { var __json0 = _json["StageItemFlatIcon"]; if(!__json0.IsArray) { throw new SerializationException(); } StageItemFlatIcon = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } StageItemFlatIcon.Add(__v0); } } json = _json; PostInit(); } public EventSmashMain(int ID, int ItemID, string UIPanel, string InfoPanel, string Icon, int BattlePassId, string BattlePassPanel, int PackID, string PackPanel, System.Collections.Generic.List CollectionIcon, System.Collections.Generic.List StageItemProb1, System.Collections.Generic.List StageItemProb2, System.Collections.Generic.List StageItemIcon, System.Collections.Generic.List StageItemFlatIcon ) { this.ID = ID; this.ItemID = ItemID; this.UIPanel = UIPanel; this.InfoPanel = InfoPanel; this.Icon = Icon; this.BattlePassId = BattlePassId; this.BattlePassPanel = BattlePassPanel; this.PackID = PackID; this.PackPanel = PackPanel; this.CollectionIcon = CollectionIcon; this.StageItemProb1 = StageItemProb1; this.StageItemProb2 = StageItemProb2; this.StageItemIcon = StageItemIcon; this.StageItemFlatIcon = StageItemFlatIcon; PostInit(); } public static EventSmashMain DeserializeEventSmashMain(JSONNode _json) { return new EventSmashMain(_json); } public int ID { get; private set; } /// /// item表主键 /// public int ItemID { get; private set; } public string UIPanel { get; private set; } public string InfoPanel { get; private set; } public string Icon { get; private set; } /// /// MiniBattlePass表主键 /// public int BattlePassId { get; private set; } public string BattlePassPanel { get; private set; } /// /// 对应shop.packagemanager主键 /// public int PackID { get; private set; } public string PackPanel { get; private set; } /// /// 三种收集道具的icon /// public System.Collections.Generic.List CollectionIcon { get; private set; } /// /// 三种收集道具的掉落概率 /// public System.Collections.Generic.List StageItemProb1 { get; private set; } /// /// 三种收集道具的掉落概率 /// public System.Collections.Generic.List StageItemProb2 { get; private set; } public System.Collections.Generic.List StageItemIcon { get; private set; } public System.Collections.Generic.List StageItemFlatIcon { get; private set; } public const int __ID__ = -1472821157; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "ItemID:" + ItemID + "," + "UIPanel:" + UIPanel + "," + "InfoPanel:" + InfoPanel + "," + "Icon:" + Icon + "," + "BattlePassId:" + BattlePassId + "," + "BattlePassPanel:" + BattlePassPanel + "," + "PackID:" + PackID + "," + "PackPanel:" + PackPanel + "," + "CollectionIcon:" + Bright.Common.StringUtil.CollectionToString(CollectionIcon) + "," + "StageItemProb1:" + Bright.Common.StringUtil.CollectionToString(StageItemProb1) + "," + "StageItemProb2:" + Bright.Common.StringUtil.CollectionToString(StageItemProb2) + "," + "StageItemIcon:" + Bright.Common.StringUtil.CollectionToString(StageItemIcon) + "," + "StageItemFlatIcon:" + Bright.Common.StringUtil.CollectionToString(StageItemFlatIcon) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }