//------------------------------------------------------------------------------ // // 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 EventMatchInit : Bright.Config.BeanBase { public JSONNode json; public EventMatchInit(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["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; } { if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { var __json0 = _json["EventItemList"]; if(!__json0.IsArray) { throw new SerializationException(); } EventItemList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } EventItemList.Add(__v0); } } { var __json0 = _json["EventSpecialItemList"]; if(!__json0.IsArray) { throw new SerializationException(); } EventSpecialItemList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } EventSpecialItemList.Add(__v0); } } { if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; } { var __json0 = _json["StageListRound1"]; if(!__json0.IsArray) { throw new SerializationException(); } StageListRound1 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageListRound1.Add(__v0); } } { var __json0 = _json["StageListRound2"]; if(!__json0.IsArray) { throw new SerializationException(); } StageListRound2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageListRound2.Add(__v0); } } { if(!_json["MatchOpenPrefab"].IsString) { throw new SerializationException(); } MatchOpenPrefab = _json["MatchOpenPrefab"]; } json = _json; PostInit(); } public EventMatchInit(int ID, string UIPanel, string InfoPanel, int SweepPackId, int PackId, string Icon, System.Collections.Generic.List EventItemList, System.Collections.Generic.List EventSpecialItemList, int ItemID, System.Collections.Generic.List StageListRound1, System.Collections.Generic.List StageListRound2, string MatchOpenPrefab ) { this.ID = ID; this.UIPanel = UIPanel; this.InfoPanel = InfoPanel; this.SweepPackId = SweepPackId; this.PackId = PackId; this.Icon = Icon; this.EventItemList = EventItemList; this.EventSpecialItemList = EventSpecialItemList; this.ItemID = ItemID; this.StageListRound1 = StageListRound1; this.StageListRound2 = StageListRound2; this.MatchOpenPrefab = MatchOpenPrefab; PostInit(); } public static EventMatchInit DeserializeEventMatchInit(JSONNode _json) { return new EventMatchInit(_json); } public int ID { get; private set; } public string UIPanel { get; private set; } public string InfoPanel { get; private set; } public int SweepPackId { get; private set; } /// /// 读shop表 /// public int PackId { get; private set; } public string Icon { get; private set; } public System.Collections.Generic.List EventItemList { get; private set; } public System.Collections.Generic.List EventSpecialItemList { get; private set; } /// /// item表id /// public int ItemID { get; private set; } public System.Collections.Generic.List StageListRound1 { get; private set; } public System.Collections.Generic.List StageListRound2 { get; private set; } public string MatchOpenPrefab { get; private set; } public const int __ID__ = 567611163; 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 + "," + "SweepPackId:" + SweepPackId + "," + "PackId:" + PackId + "," + "Icon:" + Icon + "," + "EventItemList:" + Bright.Common.StringUtil.CollectionToString(EventItemList) + "," + "EventSpecialItemList:" + Bright.Common.StringUtil.CollectionToString(EventSpecialItemList) + "," + "ItemID:" + ItemID + "," + "StageListRound1:" + Bright.Common.StringUtil.CollectionToString(StageListRound1) + "," + "StageListRound2:" + Bright.Common.StringUtil.CollectionToString(StageListRound2) + "," + "MatchOpenPrefab:" + MatchOpenPrefab + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }