备份CatanBuilding瘦身独立工程
This commit is contained in:
106
Assets/Scripts/Tables/EventPackManager.cs
Normal file
106
Assets/Scripts/Tables/EventPackManager.cs
Normal file
@@ -0,0 +1,106 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user