//------------------------------------------------------------------------------ // // 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 EventPinataPackMain : Bright.Config.BeanBase { public JSONNode json; public EventPinataPackMain(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["ActPrefab"].IsString) { throw new SerializationException(); } ActPrefab = _json["ActPrefab"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { if(!_json["HitTimes"].IsNumber) { throw new SerializationException(); } HitTimes = _json["HitTimes"]; } { if(!_json["Item"].IsNumber) { throw new SerializationException(); } Item = _json["Item"]; } { if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; } json = _json; PostInit(); } public EventPinataPackMain(int ID, string UIPanel, string GamePanel, string ActPrefab, string Icon, int HitTimes, int Item, int PackId ) { this.ID = ID; this.UIPanel = UIPanel; this.GamePanel = GamePanel; this.ActPrefab = ActPrefab; this.Icon = Icon; this.HitTimes = HitTimes; this.Item = Item; this.PackId = PackId; PostInit(); } public static EventPinataPackMain DeserializeEventPinataPackMain(JSONNode _json) { return new EventPinataPackMain(_json); } public int ID { get; private set; } public string UIPanel { get; private set; } public string GamePanel { get; private set; } /// /// 用于配置活动参数 /// public string ActPrefab { get; private set; } public string Icon { get; private set; } public int HitTimes { get; private set; } /// /// 读item表 /// public int Item { get; private set; } /// /// 读shop表,礼包id /// public int PackId { get; private set; } public const int __ID__ = -1290143611; 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 + "," + "ActPrefab:" + ActPrefab + "," + "Icon:" + Icon + "," + "HitTimes:" + HitTimes + "," + "Item:" + Item + "," + "PackId:" + PackId + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }