//------------------------------------------------------------------------------ // // 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 EventPartnerMain : Bright.Config.BeanBase { public JSONNode json; public EventPartnerMain(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["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { if(!_json["Addressable"].IsString) { throw new SerializationException(); } Addressable = _json["Addressable"]; } { if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; } { if(!_json["Bgm"].IsString) { throw new SerializationException(); } Bgm = _json["Bgm"]; } { if(!_json["WheelTicket"].IsNumber) { throw new SerializationException(); } WheelTicket = _json["WheelTicket"]; } { if(!_json["SpinRequire"].IsNumber) { throw new SerializationException(); } SpinRequire = _json["SpinRequire"]; } { 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["SpinWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinWeight = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinWeight.Add(__v0); } } { var __json0 = _json["SpinPoint"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinPoint = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinPoint.Add(__v0); } } { var __json0 = _json["SpinBg"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinBg = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } SpinBg.Add(__v0); } } { var __json0 = _json["StagePoint"]; if(!__json0.IsArray) { throw new SerializationException(); } StagePoint = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StagePoint.Add(__v0); } } { var __json0 = _json["StageReward"]; if(!__json0.IsArray) { throw new SerializationException(); } StageReward = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageReward.Add(__v0); } } { if(!_json["Reward"].IsNumber) { throw new SerializationException(); } Reward = _json["Reward"]; } { var __json0 = _json["ComponentList"]; if(!__json0.IsArray) { throw new SerializationException(); } ComponentList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ComponentList.Add(__v0); } } json = _json; PostInit(); } public EventPartnerMain(int ID, string UIPanel, string InfoPanel, int PackId, string Icon, string Addressable, string Atlas, string Bgm, int WheelTicket, int SpinRequire, System.Collections.Generic.List SpinMag, System.Collections.Generic.List SpinWeight, System.Collections.Generic.List SpinPoint, System.Collections.Generic.List SpinBg, System.Collections.Generic.List StagePoint, System.Collections.Generic.List StageReward, int Reward, System.Collections.Generic.List ComponentList ) { this.ID = ID; this.UIPanel = UIPanel; this.InfoPanel = InfoPanel; this.PackId = PackId; this.Icon = Icon; this.Addressable = Addressable; this.Atlas = Atlas; this.Bgm = Bgm; this.WheelTicket = WheelTicket; this.SpinRequire = SpinRequire; this.SpinMag = SpinMag; this.SpinWeight = SpinWeight; this.SpinPoint = SpinPoint; this.SpinBg = SpinBg; this.StagePoint = StagePoint; this.StageReward = StageReward; this.Reward = Reward; this.ComponentList = ComponentList; PostInit(); } public static EventPartnerMain DeserializeEventPartnerMain(JSONNode _json) { return new EventPartnerMain(_json); } public int ID { get; private set; } public string UIPanel { get; private set; } public string InfoPanel { get; private set; } /// /// 读shop表 /// public int PackId { get; private set; } public string Icon { get; private set; } public string Addressable { get; private set; } public string Atlas { get; private set; } public string Bgm { get; private set; } /// /// item表id /// public int WheelTicket { get; private set; } public int SpinRequire { get; private set; } public System.Collections.Generic.List SpinMag { get; private set; } public System.Collections.Generic.List SpinWeight { get; private set; } public System.Collections.Generic.List SpinPoint { get; private set; } public System.Collections.Generic.List SpinBg { get; private set; } public System.Collections.Generic.List StagePoint { get; private set; } public System.Collections.Generic.List StageReward { get; private set; } public int Reward { get; private set; } /// /// 调用EventAquariumUnit表 /// public System.Collections.Generic.List ComponentList { get; private set; } public const int __ID__ = -364943417; 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 + "," + "PackId:" + PackId + "," + "Icon:" + Icon + "," + "Addressable:" + Addressable + "," + "Atlas:" + Atlas + "," + "Bgm:" + Bgm + "," + "WheelTicket:" + WheelTicket + "," + "SpinRequire:" + SpinRequire + "," + "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + "," + "SpinWeight:" + Bright.Common.StringUtil.CollectionToString(SpinWeight) + "," + "SpinPoint:" + Bright.Common.StringUtil.CollectionToString(SpinPoint) + "," + "SpinBg:" + Bright.Common.StringUtil.CollectionToString(SpinBg) + "," + "StagePoint:" + Bright.Common.StringUtil.CollectionToString(StagePoint) + "," + "StageReward:" + Bright.Common.StringUtil.CollectionToString(StageReward) + "," + "Reward:" + Reward + "," + "ComponentList:" + Bright.Common.StringUtil.CollectionToString(ComponentList) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }