//------------------------------------------------------------------------------ // // 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 EventShootingRangeMain : Bright.Config.BeanBase { public JSONNode json; public EventShootingRangeMain(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["ChainPackPanel"].IsString) { throw new SerializationException(); } ChainPackPanel = _json["ChainPackPanel"]; } { if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; } { if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; } { if(!_json["EventPanel"].IsString) { throw new SerializationException(); } EventPanel = _json["EventPanel"]; } { if(!_json["EventRewardPanel"].IsString) { throw new SerializationException(); } EventRewardPanel = _json["EventRewardPanel"]; } { if(!_json["Scene"].IsString) { throw new SerializationException(); } Scene = _json["Scene"]; } { if(!_json["TransPanel"].IsString) { throw new SerializationException(); } TransPanel = _json["TransPanel"]; } { if(!_json["IconEvent"].IsString) { throw new SerializationException(); } IconEvent = _json["IconEvent"]; } { if(!_json["IconPackage"].IsString) { throw new SerializationException(); } IconPackage = _json["IconPackage"]; } { if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; } { if(!_json["PackId2"].IsNumber) { throw new SerializationException(); } PackId2 = _json["PackId2"]; } { var __json0 = _json["StageList"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList.Add(__v0); } } json = _json; PostInit(); } public EventShootingRangeMain(int ID, string ChainPackPanel, string PackPanel, string InfoPanel, string EventPanel, string EventRewardPanel, string Scene, string TransPanel, string IconEvent, string IconPackage, int PackId, int PackId2, System.Collections.Generic.List StageList ) { this.ID = ID; this.ChainPackPanel = ChainPackPanel; this.PackPanel = PackPanel; this.InfoPanel = InfoPanel; this.EventPanel = EventPanel; this.EventRewardPanel = EventRewardPanel; this.Scene = Scene; this.TransPanel = TransPanel; this.IconEvent = IconEvent; this.IconPackage = IconPackage; this.PackId = PackId; this.PackId2 = PackId2; this.StageList = StageList; PostInit(); } public static EventShootingRangeMain DeserializeEventShootingRangeMain(JSONNode _json) { return new EventShootingRangeMain(_json); } public int ID { get; private set; } public string ChainPackPanel { get; private set; } public string PackPanel { get; private set; } public string InfoPanel { get; private set; } public string EventPanel { get; private set; } public string EventRewardPanel { get; private set; } public string Scene { get; private set; } public string TransPanel { get; private set; } public string IconEvent { get; private set; } public string IconPackage { get; private set; } /// /// 读shop表 /// public int PackId { get; private set; } /// /// 读shop表 /// public int PackId2 { get; private set; } /// /// 调用EventShootingRangeStage表 /// public System.Collections.Generic.List StageList { get; private set; } public const int __ID__ = 1577591065; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "ChainPackPanel:" + ChainPackPanel + "," + "PackPanel:" + PackPanel + "," + "InfoPanel:" + InfoPanel + "," + "EventPanel:" + EventPanel + "," + "EventRewardPanel:" + EventRewardPanel + "," + "Scene:" + Scene + "," + "TransPanel:" + TransPanel + "," + "IconEvent:" + IconEvent + "," + "IconPackage:" + IconPackage + "," + "PackId:" + PackId + "," + "PackId2:" + PackId2 + "," + "StageList:" + Bright.Common.StringUtil.CollectionToString(StageList) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }