//------------------------------------------------------------------------------ // // 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 EventPackManager : Bright.Config.BeanBase { public JSONNode json; public EventPackManager(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["PackType"].IsNumber) { throw new SerializationException(); } PackType = _json["PackType"]; } { if(!_json["MaxCount"].IsNumber) { throw new SerializationException(); } MaxCount = _json["MaxCount"]; } { var __json0 = _json["MilestoneItem"]; if(!__json0.IsArray) { throw new SerializationException(); } MilestoneItem = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MilestoneItem.Add(__v0); } } { if(!_json["Panel"].IsString) { throw new SerializationException(); } Panel = _json["Panel"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { var __json0 = _json["MilestoneList"]; if(!__json0.IsArray) { throw new SerializationException(); } MilestoneList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MilestoneList.Add(__v0); } } { var __json0 = _json["MilestoneReward"]; if(!__json0.IsArray) { throw new SerializationException(); } MilestoneReward = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MilestoneReward.Add(__v0); } } { var __json0 = _json["VIPPackList"]; if(!__json0.IsArray) { throw new SerializationException(); } VIPPackList = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { int __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } VIPPackList.Add(__v0); } } json = _json; PostInit(); } public EventPackManager(int ID, int PackType, int MaxCount, System.Collections.Generic.List MilestoneItem, string Panel, string Icon, System.Collections.Generic.List MilestoneList, System.Collections.Generic.List MilestoneReward, System.Collections.Generic.List> VIPPackList ) { this.ID = ID; this.PackType = PackType; this.MaxCount = MaxCount; this.MilestoneItem = MilestoneItem; this.Panel = Panel; this.Icon = Icon; this.MilestoneList = MilestoneList; this.MilestoneReward = MilestoneReward; this.VIPPackList = VIPPackList; PostInit(); } public static EventPackManager DeserializeEventPackManager(JSONNode _json) { return new EventPackManager(_json); } public int ID { get; private set; } /// /// 数字越小,拍脸图优先级越高
1:三选一礼包
2:储蓄罐礼包
3:砍价礼包
4:自选鱼竿礼包
5:自选礼包
6: 1+1礼包
7: 1+2鱼竿礼包链
8:带进度礼包链
9:普通礼包
10:靶场射击普通礼包
11:目标奖励活动礼包
12:特殊礼包链
13:扫荡礼包 ///
public int PackType { get; private set; } /// /// 活动期内,单个礼包最多购买次数 /// public int MaxCount { get; private set; } /// /// A,B;礼包中的活动道具A,全部替换为活动道具B /// public System.Collections.Generic.List MilestoneItem { get; private set; } public string Panel { get; private set; } public string Icon { get; private set; } public System.Collections.Generic.List MilestoneList { get; private set; } /// /// 读Drop表 /// public System.Collections.Generic.List MilestoneReward { get; private set; } public System.Collections.Generic.List> VIPPackList { get; private set; } public const int __ID__ = -1163780998; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "PackType:" + PackType + "," + "MaxCount:" + MaxCount + "," + "MilestoneItem:" + Bright.Common.StringUtil.CollectionToString(MilestoneItem) + "," + "Panel:" + Panel + "," + "Icon:" + Icon + "," + "MilestoneList:" + Bright.Common.StringUtil.CollectionToString(MilestoneList) + "," + "MilestoneReward:" + Bright.Common.StringUtil.CollectionToString(MilestoneReward) + "," + "VIPPackList:" + Bright.Common.StringUtil.CollectionToString(VIPPackList) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }