Files
back_cantanBuilding/Assets/Scripts/Tables/EventPackManager.cs
2026-05-26 16:15:54 +08:00

107 lines
5.8 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
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<int>(__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<int>(__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<int>(__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<System.Collections.Generic.List<int>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<int> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<int>(__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<int> MilestoneItem, string Panel, string Icon, System.Collections.Generic.List<int> MilestoneList, System.Collections.Generic.List<int> MilestoneReward, System.Collections.Generic.List<System.Collections.Generic.List<int>> 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; }
/// <summary>
/// 数字越小,拍脸图优先级越高<br/>1三选一礼包<br/>2储蓄罐礼包<br/>3砍价礼包<br/>4自选鱼竿礼包<br/>5自选礼包<br/>6: 1+1礼包<br/>7: 1+2鱼竿礼包链<br/>8带进度礼包链<br/>9: 普通礼包<br/>10靶场射击普通礼包<br/>11目标奖励活动礼包<br/>12特殊礼包链<br/>
/// </summary>
public int PackType { get; private set; }
/// <summary>
/// 活动期内,单个礼包最多购买次数
/// </summary>
public int MaxCount { get; private set; }
/// <summary>
/// A,B;礼包中的活动道具A全部替换为活动道具B
/// </summary>
public System.Collections.Generic.List<int> MilestoneItem { get; private set; }
public string Panel { get; private set; }
public string Icon { get; private set; }
public System.Collections.Generic.List<int> MilestoneList { get; private set; }
/// <summary>
/// 读Drop表
/// </summary>
public System.Collections.Generic.List<int> MilestoneReward { get; private set; }
public System.Collections.Generic.List<System.Collections.Generic.List<int>> VIPPackList { get; private set; }
public const int __ID__ = -1163780998;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> 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();
}
}