先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
107 lines
5.8 KiB
C#
107 lines
5.8 KiB
C#
//------------------------------------------------------------------------------
|
||
// <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/>13:扫荡礼包
|
||
/// </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();
|
||
}
|
||
}
|