备份CatanBuilding瘦身独立工程

This commit is contained in:
JSD\13999
2026-05-26 16:15:54 +08:00
commit 2d0e6a61b7
12001 changed files with 2431925 additions and 0 deletions

View File

@@ -0,0 +1,117 @@
//------------------------------------------------------------------------------
// <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 TriggerPackManager : Bright.Config.BeanBase
{
public JSONNode json;
public TriggerPackManager(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["PackType"].IsNumber) { throw new SerializationException(); } PackType = _json["PackType"]; }
{ if(!_json["PackSubType"].IsNumber) { throw new SerializationException(); } PackSubType = _json["PackSubType"]; }
{ if(!_json["TimeDefinition"].IsObject) { throw new SerializationException(); } TimeDefinition = FishingEventType.DeserializeFishingEventType(_json["TimeDefinition"]); }
{ if(!_json["VIPBonus"].IsNumber) { throw new SerializationException(); } VIPBonus = _json["VIPBonus"]; }
{ if(!_json["MaxTrigger"].IsNumber) { throw new SerializationException(); } MaxTrigger = _json["MaxTrigger"]; }
{ if(!_json["Condition"].IsNumber) { throw new SerializationException(); } Condition = (ConditionType)_json["Condition"].AsInt; }
{ var __json0 = _json["Param"]; if(!__json0.IsArray) { throw new SerializationException(); } Param = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Param.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 TriggerPackManager(int ID, int PackType, int PackSubType, FishingEventType TimeDefinition, int VIPBonus, int MaxTrigger, ConditionType Condition, System.Collections.Generic.List<string> Param, System.Collections.Generic.List<System.Collections.Generic.List<int>> VIPPackList )
{
this.ID = ID;
this.PackType = PackType;
this.PackSubType = PackSubType;
this.TimeDefinition = TimeDefinition;
this.VIPBonus = VIPBonus;
this.MaxTrigger = MaxTrigger;
this.Condition = Condition;
this.Param = Param;
this.VIPPackList = VIPPackList;
PostInit();
}
public static TriggerPackManager DeserializeTriggerPackManager(JSONNode _json)
{
return new TriggerPackManager(_json);
}
public int ID { get; private set; }
/// <summary>
/// 数字越小,拍脸图优先级越高<br/>1新手礼包<br/>2首充礼包<br/>3破冰体力礼包<br/>4体力不足礼包<br/>5广告券礼包<br/>6水族馆鱼卡礼包<br/>7新手礼包链<br/>51转盘券礼包<br/>52扑克券礼包<br/>53地图解锁礼包
/// </summary>
public int PackType { get; private set; }
/// <summary>
/// 见附录
/// </summary>
public int PackSubType { get; private set; }
/// <summary>
/// Forever永久活动<br/>LimitedTime限时活动<br/>UserRegistration用户注册时间<br/>Daily日活动<br/>Weekly周活动<br/>Cycle周期循环活动
/// </summary>
public FishingEventType TimeDefinition { get; private set; }
/// <summary>
/// 下次刷新这个类别的礼包时等价VIP等级提升可叠加<br/><br/>比如每日礼包购买后VIP等价会提升2那么一个VIP等级为3的玩家买了3个礼包后转天会看到VIP等级为3 + 3 * 2 = 9的礼包
/// </summary>
public int VIPBonus { get; private set; }
/// <summary>
/// 这个礼包每天只能触发这么多次<br/>
/// </summary>
public int MaxTrigger { get; private set; }
/// <summary>
/// 见enum表
/// </summary>
public ConditionType Condition { get; private set; }
/// <summary>
/// 逗号隔开
/// </summary>
public System.Collections.Generic.List<string> Param { get; private set; }
public System.Collections.Generic.List<System.Collections.Generic.List<int>> VIPPackList { get; private set; }
public const int __ID__ = -326487396;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
TimeDefinition?.Resolve(_tables);
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
TimeDefinition?.TranslateText(translator);
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "PackType:" + PackType + ","
+ "PackSubType:" + PackSubType + ","
+ "TimeDefinition:" + TimeDefinition + ","
+ "VIPBonus:" + VIPBonus + ","
+ "MaxTrigger:" + MaxTrigger + ","
+ "Condition:" + Condition + ","
+ "Param:" + Bright.Common.StringUtil.CollectionToString(Param) + ","
+ "VIPPackList:" + Bright.Common.StringUtil.CollectionToString(VIPPackList) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}