//------------------------------------------------------------------------------ // // 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 EventPinballCountlessMain : Bright.Config.BeanBase { public JSONNode json; public EventPinballCountlessMain(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["PinballAct"].IsString) { throw new SerializationException(); } PinballAct = _json["PinballAct"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { if(!_json["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; } { if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; } { if(!_json["Pinball"].IsNumber) { throw new SerializationException(); } Pinball = _json["Pinball"]; } { var __json0 = _json["SpinMag"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinMag = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinMag.Add(__v0); } } { var __json0 = _json["DiscCollisionCount"]; if(!__json0.IsArray) { throw new SerializationException(); } DiscCollisionCount = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DiscCollisionCount.Add(__v0); } } { var __json0 = _json["DiscCollisionReward"]; if(!__json0.IsArray) { throw new SerializationException(); } DiscCollisionReward = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { int __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } DiscCollisionReward.Add(__v0); } } { var __json0 = _json["RewardFirst"]; if(!__json0.IsArray) { throw new SerializationException(); } RewardFirst = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RewardFirst.Add(__v0); } } { var __json0 = _json["RewardLoop"]; if(!__json0.IsArray) { throw new SerializationException(); } RewardLoop = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RewardLoop.Add(__v0); } } json = _json; PostInit(); } public EventPinballCountlessMain(int ID, string UIPanel, string InfoPanel, string PinballAct, string Icon, int SweepPackId, int PackId, int Pinball, System.Collections.Generic.List SpinMag, System.Collections.Generic.List DiscCollisionCount, System.Collections.Generic.List> DiscCollisionReward, System.Collections.Generic.List RewardFirst, System.Collections.Generic.List RewardLoop ) { this.ID = ID; this.UIPanel = UIPanel; this.InfoPanel = InfoPanel; this.PinballAct = PinballAct; this.Icon = Icon; this.SweepPackId = SweepPackId; this.PackId = PackId; this.Pinball = Pinball; this.SpinMag = SpinMag; this.DiscCollisionCount = DiscCollisionCount; this.DiscCollisionReward = DiscCollisionReward; this.RewardFirst = RewardFirst; this.RewardLoop = RewardLoop; PostInit(); } public static EventPinballCountlessMain DeserializeEventPinballCountlessMain(JSONNode _json) { return new EventPinballCountlessMain(_json); } public int ID { get; private set; } public string UIPanel { get; private set; } public string InfoPanel { get; private set; } public string PinballAct { get; private set; } public string Icon { get; private set; } /// /// 读shop表 /// public int SweepPackId { get; private set; } /// /// 读shop表 /// public int PackId { get; private set; } /// /// item表id /// public int Pinball { get; private set; } public System.Collections.Generic.List SpinMag { get; private set; } /// /// 弹在两个碟子上多少次 /// public System.Collections.Generic.List DiscCollisionCount { get; private set; } /// /// 分别对应两个碟子弹满了的奖励,列表循环
对应Drop表主键 ///
public System.Collections.Generic.List> DiscCollisionReward { get; private set; } /// /// 对应EventPinballCountlessReward主键 /// public System.Collections.Generic.List RewardFirst { get; private set; } public System.Collections.Generic.List RewardLoop { get; private set; } public const int __ID__ = -1013425689; 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 + "," + "PinballAct:" + PinballAct + "," + "Icon:" + Icon + "," + "SweepPackId:" + SweepPackId + "," + "PackId:" + PackId + "," + "Pinball:" + Pinball + "," + "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + "," + "DiscCollisionCount:" + Bright.Common.StringUtil.CollectionToString(DiscCollisionCount) + "," + "DiscCollisionReward:" + Bright.Common.StringUtil.CollectionToString(DiscCollisionReward) + "," + "RewardFirst:" + Bright.Common.StringUtil.CollectionToString(RewardFirst) + "," + "RewardLoop:" + Bright.Common.StringUtil.CollectionToString(RewardLoop) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }