备份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,160 @@
//------------------------------------------------------------------------------
// <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 FishEatFish : Bright.Config.BeanBase
{
public JSONNode json;
public FishEatFish(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["PullingProb"].IsNumber) { throw new SerializationException(); } PullingProb = _json["PullingProb"]; }
{ if(!_json["UIEatWeight"].IsNumber) { throw new SerializationException(); } UIEatWeight = _json["UIEatWeight"]; }
{ if(!_json["EatWeight"].IsNumber) { throw new SerializationException(); } EatWeight = _json["EatWeight"]; }
{ var __json0 = _json["FirstFishQuality"]; if(!__json0.IsArray) { throw new SerializationException(); } FirstFishQuality = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FirstFishQuality.Add(__v0); } }
{ var __json0 = _json["MiddleFishQuality"]; if(!__json0.IsArray) { throw new SerializationException(); } MiddleFishQuality = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MiddleFishQuality.Add(__v0); } }
{ var __json0 = _json["MiddleFishCount"]; if(!__json0.IsArray) { throw new SerializationException(); } MiddleFishCount = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MiddleFishCount.Add(__v0); } }
{ var __json0 = _json["MiddleFishCountWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } MiddleFishCountWeight = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MiddleFishCountWeight.Add(__v0); } }
{ var __json0 = _json["UIEatHpPercent"]; if(!__json0.IsArray) { throw new SerializationException(); } UIEatHpPercent = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } UIEatHpPercent.Add(__v0); } }
{ if(!_json["WarningAfterEat"].IsString) { throw new SerializationException(); } WarningAfterEat = _json["WarningAfterEat"]; }
{ if(!_json["IsDarkness"].IsBoolean) { throw new SerializationException(); } IsDarkness = _json["IsDarkness"]; }
{ if(!_json["CruiseExtraScale"].IsNumber) { throw new SerializationException(); } CruiseExtraScale = _json["CruiseExtraScale"]; }
{ if(!_json["CruiseBg"].IsString) { throw new SerializationException(); } CruiseBg = _json["CruiseBg"]; }
{ if(!_json["CruiseMaxCount"].IsNumber) { throw new SerializationException(); } CruiseMaxCount = _json["CruiseMaxCount"]; }
{ var __json0 = _json["CruiseAppearForTargetFishQuality"]; if(!__json0.IsArray) { throw new SerializationException(); } CruiseAppearForTargetFishQuality = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CruiseAppearForTargetFishQuality.Add(__v0); } }
json = _json;
PostInit();
}
public FishEatFish(int ID, float PullingProb, int UIEatWeight, int EatWeight, System.Collections.Generic.List<int> FirstFishQuality, System.Collections.Generic.List<int> MiddleFishQuality, System.Collections.Generic.List<int> MiddleFishCount, System.Collections.Generic.List<int> MiddleFishCountWeight, System.Collections.Generic.List<float> UIEatHpPercent, string WarningAfterEat, bool IsDarkness, float CruiseExtraScale, string CruiseBg, int CruiseMaxCount, System.Collections.Generic.List<float> CruiseAppearForTargetFishQuality )
{
this.ID = ID;
this.PullingProb = PullingProb;
this.UIEatWeight = UIEatWeight;
this.EatWeight = EatWeight;
this.FirstFishQuality = FirstFishQuality;
this.MiddleFishQuality = MiddleFishQuality;
this.MiddleFishCount = MiddleFishCount;
this.MiddleFishCountWeight = MiddleFishCountWeight;
this.UIEatHpPercent = UIEatHpPercent;
this.WarningAfterEat = WarningAfterEat;
this.IsDarkness = IsDarkness;
this.CruiseExtraScale = CruiseExtraScale;
this.CruiseBg = CruiseBg;
this.CruiseMaxCount = CruiseMaxCount;
this.CruiseAppearForTargetFishQuality = CruiseAppearForTargetFishQuality;
PostInit();
}
public static FishEatFish DeserializeFishEatFish(JSONNode _json)
{
return new FishEatFish(_json);
}
public int ID { get; private set; }
/// <summary>
/// 第一步先算这个,如果直接钓起来了就没下文了
/// </summary>
public float PullingProb { get; private set; }
/// <summary>
/// Drawing阶段游过去然后播放UI吃掉鱼
/// </summary>
public int UIEatWeight { get; private set; }
/// <summary>
/// Pulling阶段时播放动画吃掉鱼
/// </summary>
public int EatWeight { get; private set; }
/// <summary>
/// 一开始钓到的鱼,在当前地图中对应品质的鱼中等概率随机<br/><br/>如果是特殊地图则DropFishData中的列+4比如配5对应第1列的鱼
/// </summary>
public System.Collections.Generic.List<int> FirstFishQuality { get; private set; }
/// <summary>
/// 在起始鱼和目标鱼中间插入的连吃鱼
/// </summary>
public System.Collections.Generic.List<int> MiddleFishQuality { get; private set; }
/// <summary>
/// 最后钓到的鱼,钓鱼总数其实是这个数量+2有起始鱼和目标鱼<br/>注意如果有游弋鱼的特殊处理
/// </summary>
public System.Collections.Generic.List<int> MiddleFishCount { get; private set; }
/// <summary>
/// MiddleFishCount的权重
/// </summary>
public System.Collections.Generic.List<int> MiddleFishCountWeight { get; private set; }
/// <summary>
/// 从这个区间到0%之间随机出一个血量,血量低于这个数值就吃鱼
/// </summary>
public System.Collections.Generic.List<float> UIEatHpPercent { get; private set; }
/// <summary>
/// 在UI吃鱼和动画吃鱼后出现提示warning<br/>品质 &gt;= 5的鱼有提示
/// </summary>
public string WarningAfterEat { get; private set; }
/// <summary>
/// 如果出现了游弋鱼,则读取它的这个行,看出现的提示<br/>只有活动鱼有对应提示
/// </summary>
public bool IsDarkness { get; private set; }
/// <summary>
/// 鱼的Scale需要额外乘以这个数
/// </summary>
public float CruiseExtraScale { get; private set; }
/// <summary>
/// 如果出现了游弋鱼,则读取它的这个行,看出现的提示<br/>只有活动鱼有对应提示
/// </summary>
public string CruiseBg { get; private set; }
/// <summary>
/// 无论触发了没有,钓鱼这么多次之后直接销毁游弋鱼
/// </summary>
public int CruiseMaxCount { get; private set; }
/// <summary>
/// 如果没有被加入到吃鱼队列里则根据目标鱼品质选择当前游弋鱼的游弋概率分别对应8个品质
/// </summary>
public System.Collections.Generic.List<float> CruiseAppearForTargetFishQuality { get; private set; }
public const int __ID__ = -1527219144;
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 + ","
+ "PullingProb:" + PullingProb + ","
+ "UIEatWeight:" + UIEatWeight + ","
+ "EatWeight:" + EatWeight + ","
+ "FirstFishQuality:" + Bright.Common.StringUtil.CollectionToString(FirstFishQuality) + ","
+ "MiddleFishQuality:" + Bright.Common.StringUtil.CollectionToString(MiddleFishQuality) + ","
+ "MiddleFishCount:" + Bright.Common.StringUtil.CollectionToString(MiddleFishCount) + ","
+ "MiddleFishCountWeight:" + Bright.Common.StringUtil.CollectionToString(MiddleFishCountWeight) + ","
+ "UIEatHpPercent:" + Bright.Common.StringUtil.CollectionToString(UIEatHpPercent) + ","
+ "WarningAfterEat:" + WarningAfterEat + ","
+ "IsDarkness:" + IsDarkness + ","
+ "CruiseExtraScale:" + CruiseExtraScale + ","
+ "CruiseBg:" + CruiseBg + ","
+ "CruiseMaxCount:" + CruiseMaxCount + ","
+ "CruiseAppearForTargetFishQuality:" + Bright.Common.StringUtil.CollectionToString(CruiseAppearForTargetFishQuality) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}