//------------------------------------------------------------------------------ // // 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 EventCanMain : Bright.Config.BeanBase { public JSONNode json; public EventCanMain(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["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { var __json0 = _json["Addressable"]; if(!__json0.IsArray) { throw new SerializationException(); } Addressable = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Addressable.Add(__v0); } } { if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; } { if(!_json["Bgm"].IsString) { throw new SerializationException(); } Bgm = _json["Bgm"]; } { if(!_json["ChainPackPanel"].IsString) { throw new SerializationException(); } ChainPackPanel = _json["ChainPackPanel"]; } { if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; } { if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; } { if(!_json["PackId2"].IsNumber) { throw new SerializationException(); } PackId2 = _json["PackId2"]; } { if(!_json["PackIcon"].IsString) { throw new SerializationException(); } PackIcon = _json["PackIcon"]; } { if(!_json["ItemCan"].IsNumber) { throw new SerializationException(); } ItemCan = _json["ItemCan"]; } { var __json0 = _json["CanReward"]; if(!__json0.IsArray) { throw new SerializationException(); } CanReward = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CanReward.Add(__v0); } } { var __json0 = _json["GemReward"]; if(!__json0.IsArray) { throw new SerializationException(); } GemReward = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } GemReward.Add(__v0); } } { var __json0 = _json["CanRange"]; if(!__json0.IsArray) { throw new SerializationException(); } CanRange = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CanRange.Add(__v0); } } { if(!_json["CanMax"].IsNumber) { throw new SerializationException(); } CanMax = _json["CanMax"]; } json = _json; PostInit(); } public EventCanMain(int ID, string UIPanel, string InfoPanel, string Icon, System.Collections.Generic.List Addressable, string Atlas, string Bgm, string ChainPackPanel, string PackPanel, int PackId, int PackId2, string PackIcon, int ItemCan, System.Collections.Generic.List CanReward, System.Collections.Generic.List GemReward, System.Collections.Generic.List CanRange, int CanMax ) { this.ID = ID; this.UIPanel = UIPanel; this.InfoPanel = InfoPanel; this.Icon = Icon; this.Addressable = Addressable; this.Atlas = Atlas; this.Bgm = Bgm; this.ChainPackPanel = ChainPackPanel; this.PackPanel = PackPanel; this.PackId = PackId; this.PackId2 = PackId2; this.PackIcon = PackIcon; this.ItemCan = ItemCan; this.CanReward = CanReward; this.GemReward = GemReward; this.CanRange = CanRange; this.CanMax = CanMax; PostInit(); } public static EventCanMain DeserializeEventCanMain(JSONNode _json) { return new EventCanMain(_json); } public int ID { get; private set; } public string UIPanel { get; private set; } public string InfoPanel { get; private set; } public string Icon { get; private set; } public System.Collections.Generic.List Addressable { get; private set; } public string Atlas { get; private set; } public string Bgm { get; private set; } public string ChainPackPanel { get; private set; } public string PackPanel { get; private set; } /// /// 读shop表 /// public int PackId { get; private set; } /// /// 读shop表 /// public int PackId2 { get; private set; } public string PackIcon { get; private set; } /// /// item表id /// public int ItemCan { get; private set; } public System.Collections.Generic.List CanReward { get; private set; } public System.Collections.Generic.List GemReward { get; private set; } public System.Collections.Generic.List CanRange { get; private set; } public int CanMax { get; private set; } public const int __ID__ = 1622133199; 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 + "," + "Icon:" + Icon + "," + "Addressable:" + Bright.Common.StringUtil.CollectionToString(Addressable) + "," + "Atlas:" + Atlas + "," + "Bgm:" + Bgm + "," + "ChainPackPanel:" + ChainPackPanel + "," + "PackPanel:" + PackPanel + "," + "PackId:" + PackId + "," + "PackId2:" + PackId2 + "," + "PackIcon:" + PackIcon + "," + "ItemCan:" + ItemCan + "," + "CanReward:" + Bright.Common.StringUtil.CollectionToString(CanReward) + "," + "GemReward:" + Bright.Common.StringUtil.CollectionToString(GemReward) + "," + "CanRange:" + Bright.Common.StringUtil.CollectionToString(CanRange) + "," + "CanMax:" + CanMax + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }