//------------------------------------------------------------------------------ // // 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 EventPartnerMain2 : Bright.Config.BeanBase { public JSONNode json; public EventPartnerMain2(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; } { if(!_json["GamePanel"].IsString) { throw new SerializationException(); } GamePanel = _json["GamePanel"]; } { 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["InitID"].IsNumber) { throw new SerializationException(); } InitID = _json["InitID"]; } { if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; } { if(!_json["SpinRequire"].IsNumber) { throw new SerializationException(); } SpinRequire = _json["SpinRequire"]; } { if(!_json["MinePoint"].IsNumber) { throw new SerializationException(); } MinePoint = _json["MinePoint"]; } { var __json0 = _json["MinePointShow"]; if(!__json0.IsArray) { throw new SerializationException(); } MinePointShow = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MinePointShow.Add(__v0); } } { 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["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["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"]; } json = _json; PostInit(); } public EventPartnerMain2(int ID, string UIPanel, string GamePanel, string InfoPanel, int PackId, string Icon, string Addressable, string Atlas, int InitID, int ItemID, int SpinRequire, int MinePoint, System.Collections.Generic.List MinePointShow, System.Collections.Generic.List SpinMag, System.Collections.Generic.List SpinPoint, System.Collections.Generic.List StagePoint, System.Collections.Generic.List StageReward, int Reward ) { this.ID = ID; this.UIPanel = UIPanel; this.GamePanel = GamePanel; this.InfoPanel = InfoPanel; this.PackId = PackId; this.Icon = Icon; this.Addressable = Addressable; this.Atlas = Atlas; this.InitID = InitID; this.ItemID = ItemID; this.SpinRequire = SpinRequire; this.MinePoint = MinePoint; this.MinePointShow = MinePointShow; this.SpinMag = SpinMag; this.SpinPoint = SpinPoint; this.StagePoint = StagePoint; this.StageReward = StageReward; this.Reward = Reward; PostInit(); } public static EventPartnerMain2 DeserializeEventPartnerMain2(JSONNode _json) { return new EventPartnerMain2(_json); } public int ID { get; private set; } /// /// 主界面 /// public string UIPanel { get; private set; } /// /// 玩法界面 /// public string GamePanel { 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; } /// /// Init表id /// public int InitID { get; private set; } /// /// item表id /// public int ItemID { get; private set; } public int SpinRequire { get; private set; } /// /// 一个矿石对应多少积分 /// public int MinePoint { get; private set; } /// /// 每个区域一列有多少个 /// public System.Collections.Generic.List MinePointShow { get; private set; } public System.Collections.Generic.List SpinMag { get; private set; } /// /// 对应SpinPoint /// public System.Collections.Generic.List SpinPoint { get; private set; } public System.Collections.Generic.List StagePoint { get; private set; } public System.Collections.Generic.List StageReward { get; private set; } /// /// ID /// public int Reward { get; private set; } public const int __ID__ = 1571656011; 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 + "," + "GamePanel:" + GamePanel + "," + "InfoPanel:" + InfoPanel + "," + "PackId:" + PackId + "," + "Icon:" + Icon + "," + "Addressable:" + Addressable + "," + "Atlas:" + Atlas + "," + "InitID:" + InitID + "," + "ItemID:" + ItemID + "," + "SpinRequire:" + SpinRequire + "," + "MinePoint:" + MinePoint + "," + "MinePointShow:" + Bright.Common.StringUtil.CollectionToString(MinePointShow) + "," + "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + "," + "SpinPoint:" + Bright.Common.StringUtil.CollectionToString(SpinPoint) + "," + "StagePoint:" + Bright.Common.StringUtil.CollectionToString(StagePoint) + "," + "StageReward:" + Bright.Common.StringUtil.CollectionToString(StageReward) + "," + "Reward:" + Reward + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }