Files
MinFt/Client/Assets/Scripts/Tables/FishMutant.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

132 lines
7.7 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
{
/// <summary>
/// 鱼的变异
/// </summary>
public sealed partial class FishMutant : Bright.Config.BeanBase
{
public JSONNode json;
public FishMutant(JSONNode _json)
{
{ if(!_json["Material"].IsString) { throw new SerializationException(); } Material = _json["Material"]; }
{ if(!_json["FxLeftEye"].IsString) { throw new SerializationException(); } FxLeftEye = _json["FxLeftEye"]; }
{ if(!_json["FxRightEye"].IsString) { throw new SerializationException(); } FxRightEye = _json["FxRightEye"]; }
{ var __json0 = _json["MutantProb"]; if(!__json0.IsArray) { throw new SerializationException(); } MutantProb = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MutantProb.Add(__v0); } }
{ var __json0 = _json["ExtraReward"]; if(!__json0.IsArray) { throw new SerializationException(); } ExtraReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExtraReward.Add(__v0); } }
{ var __json0 = _json["FishingScale"]; if(!__json0.IsArray) { throw new SerializationException(); } FishingScale = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishingScale.Add(__v0); } }
{ var __json0 = _json["AquariumScale"]; if(!__json0.IsArray) { throw new SerializationException(); } AquariumScale = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AquariumScale.Add(__v0); } }
{ var __json0 = _json["FxFishingScale"]; if(!__json0.IsArray) { throw new SerializationException(); } FxFishingScale = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FxFishingScale.Add(__v0); } }
{ var __json0 = _json["FxAquariumScale"]; if(!__json0.IsArray) { throw new SerializationException(); } FxAquariumScale = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FxAquariumScale.Add(__v0); } }
{ var __json0 = _json["FishingExtraParam"]; if(!__json0.IsArray) { throw new SerializationException(); } FishingExtraParam = new System.Collections.Generic.List<System.Collections.Generic.List<float>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<float> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<float>(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { float __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } FishingExtraParam.Add(__v0); } }
json = _json;
PostInit();
}
public FishMutant(string Material, string FxLeftEye, string FxRightEye, System.Collections.Generic.List<float> MutantProb, System.Collections.Generic.List<int> ExtraReward, System.Collections.Generic.List<float> FishingScale, System.Collections.Generic.List<float> AquariumScale, System.Collections.Generic.List<float> FxFishingScale, System.Collections.Generic.List<float> FxAquariumScale, System.Collections.Generic.List<System.Collections.Generic.List<float>> FishingExtraParam )
{
this.Material = Material;
this.FxLeftEye = FxLeftEye;
this.FxRightEye = FxRightEye;
this.MutantProb = MutantProb;
this.ExtraReward = ExtraReward;
this.FishingScale = FishingScale;
this.AquariumScale = AquariumScale;
this.FxFishingScale = FxFishingScale;
this.FxAquariumScale = FxAquariumScale;
this.FishingExtraParam = FishingExtraParam;
PostInit();
}
public static FishMutant DeserializeFishMutant(JSONNode _json)
{
return new FishMutant(_json);
}
/// <summary>
/// 变异的材质
/// </summary>
public string Material { get; private set; }
/// <summary>
/// 左眼特效
/// </summary>
public string FxLeftEye { get; private set; }
/// <summary>
/// 右眼特效
/// </summary>
public string FxRightEye { get; private set; }
/// <summary>
/// 每种品质的鱼变异的概率
/// </summary>
public System.Collections.Generic.List<float> MutantProb { get; private set; }
/// <summary>
/// 钓起的时候的额外奖励<br/>对应Drop表主键<br/>积分,钞票
/// </summary>
public System.Collections.Generic.List<int> ExtraReward { get; private set; }
/// <summary>
/// 钓鱼、游弋时模型放大倍率<br/>额外乘以这个倍率
/// </summary>
public System.Collections.Generic.List<float> FishingScale { get; private set; }
/// <summary>
/// 水族箱模型放大倍率<br/>额外乘以这个倍率
/// </summary>
public System.Collections.Generic.List<float> AquariumScale { get; private set; }
/// <summary>
/// 钓鱼时,鱼眼特效的总倍率
/// </summary>
public System.Collections.Generic.List<float> FxFishingScale { get; private set; }
/// <summary>
/// 水族箱时,鱼眼特效的总倍率<br/>注意需要乘以鱼的成熟缩放
/// </summary>
public System.Collections.Generic.List<float> FxAquariumScale { get; private set; }
/// <summary>
/// 钓鱼时,如下属性会以加法方式提高:<br/>力量,速度,警惕,血量,逃跑速度,技能蓄力速度,逃跑触发血量
/// </summary>
public System.Collections.Generic.List<System.Collections.Generic.List<float>> FishingExtraParam { get; private set; }
public const int __ID__ = 1306643251;
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 "{ "
+ "Material:" + Material + ","
+ "FxLeftEye:" + FxLeftEye + ","
+ "FxRightEye:" + FxRightEye + ","
+ "MutantProb:" + Bright.Common.StringUtil.CollectionToString(MutantProb) + ","
+ "ExtraReward:" + Bright.Common.StringUtil.CollectionToString(ExtraReward) + ","
+ "FishingScale:" + Bright.Common.StringUtil.CollectionToString(FishingScale) + ","
+ "AquariumScale:" + Bright.Common.StringUtil.CollectionToString(AquariumScale) + ","
+ "FxFishingScale:" + Bright.Common.StringUtil.CollectionToString(FxFishingScale) + ","
+ "FxAquariumScale:" + Bright.Common.StringUtil.CollectionToString(FxAquariumScale) + ","
+ "FishingExtraParam:" + Bright.Common.StringUtil.CollectionToString(FishingExtraParam) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}