Files
MinFt/Client/Assets/Scripts/Tables/FishBuff.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

166 lines
7.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <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 FishBuff : Bright.Config.BeanBase
{
public JSONNode json;
public FishBuff(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["GroupId"].IsNumber) { throw new SerializationException(); } GroupId = _json["GroupId"]; }
{ if(!_json["SortID"].IsNumber) { throw new SerializationException(); } SortID = _json["SortID"]; }
{ if(!_json["BuffParam"].IsObject) { throw new SerializationException(); } BuffParam = FishBuffType.DeserializeFishBuffType(_json["BuffParam"]); }
{ if(!_json["IsMapBuff"].IsBoolean) { throw new SerializationException(); } IsMapBuff = _json["IsMapBuff"]; }
{ if(!_json["CountDown"].IsNumber) { throw new SerializationException(); } CountDown = _json["CountDown"]; }
{ if(!_json["Audio"].IsString) { throw new SerializationException(); } Audio = _json["Audio"]; }
{ if(!_json["RemarkNode"].IsString) { throw new SerializationException(); } RemarkNode = _json["RemarkNode"]; }
{ var __json0 = _json["RemarkIcon"]; if(!__json0.IsArray) { throw new SerializationException(); } RemarkIcon = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } RemarkIcon.Add(__v0); } }
{ if(!_json["Title"]["key"].IsString) { throw new SerializationException(); } Title_l10n_key = _json["Title"]["key"]; if(!_json["Title"]["text"].IsString) { throw new SerializationException(); } Title = _json["Title"]["text"]; }
{ if(!_json["Desc"]["key"].IsString) { throw new SerializationException(); } Desc_l10n_key = _json["Desc"]["key"]; if(!_json["Desc"]["text"].IsString) { throw new SerializationException(); } Desc = _json["Desc"]["text"]; }
{ if(!_json["RemarkDesc"]["key"].IsString) { throw new SerializationException(); } RemarkDesc_l10n_key = _json["RemarkDesc"]["key"]; if(!_json["RemarkDesc"]["text"].IsString) { throw new SerializationException(); } RemarkDesc = _json["RemarkDesc"]["text"]; }
{ if(!_json["SceneFx"].IsString) { throw new SerializationException(); } SceneFx = _json["SceneFx"]; }
{ if(!_json["IsDarkness"].IsBoolean) { throw new SerializationException(); } IsDarkness = _json["IsDarkness"]; }
json = _json;
PostInit();
}
public FishBuff(int ID, string Icon, int GroupId, int SortID, FishBuffType BuffParam, bool IsMapBuff, int CountDown, string Audio, string RemarkNode, System.Collections.Generic.List<string> RemarkIcon, string Title, string Desc, string RemarkDesc, string SceneFx, bool IsDarkness )
{
this.ID = ID;
this.Icon = Icon;
this.GroupId = GroupId;
this.SortID = SortID;
this.BuffParam = BuffParam;
this.IsMapBuff = IsMapBuff;
this.CountDown = CountDown;
this.Audio = Audio;
this.RemarkNode = RemarkNode;
this.RemarkIcon = RemarkIcon;
this.Title = Title;
this.Desc = Desc;
this.RemarkDesc = RemarkDesc;
this.SceneFx = SceneFx;
this.IsDarkness = IsDarkness;
PostInit();
}
public static FishBuff DeserializeFishBuff(JSONNode _json)
{
return new FishBuff(_json);
}
public int ID { get; private set; }
public string Icon { get; private set; }
/// <summary>
/// 同组的Buff可以叠加持续时间<br/>不同组的会分别显示<br/>只有商业化触发的buff和每日登录触发的buff会叠加
/// </summary>
public int GroupId { get; private set; }
/// <summary>
/// 越高则越靠下,也就是越优先展示<br/>同优先级下越早触发的越靠下<br/>如果多个buff出现合并合并后的buff取合并前SortID最高的
/// </summary>
public int SortID { get; private set; }
/// <summary>
/// 参见beans表FishBuffType
/// </summary>
public FishBuffType BuffParam { get; private set; }
/// <summary>
/// 如果为1则只对触发的地图生效离开地图时会触发提示
/// </summary>
public bool IsMapBuff { get; private set; }
/// <summary>
/// 单位秒<br/>-1则为持续到活动结束
/// </summary>
public int CountDown { get; private set; }
/// <summary>
/// buff出现时播放
/// </summary>
public string Audio { get; private set; }
/// <summary>
/// buff_1单行<br/>buff_2图文备注<br/>buff_32行
/// </summary>
public string RemarkNode { get; private set; }
/// <summary>
/// buff_2取第1个<br/>buff_3取前2个
/// </summary>
public System.Collections.Generic.List<string> RemarkIcon { get; private set; }
/// <summary>
/// key
/// </summary>
public string Title { get; private set; }
public string Title_l10n_key { get; }
/// <summary>
/// key
/// </summary>
public string Desc { get; private set; }
public string Desc_l10n_key { get; }
/// <summary>
/// key
/// </summary>
public string RemarkDesc { get; private set; }
public string RemarkDesc_l10n_key { get; }
/// <summary>
/// buff持续时间内场景播放特效
/// </summary>
public string SceneFx { get; private set; }
/// <summary>
/// 如果是则一直压黑直到buff结束
/// </summary>
public bool IsDarkness { get; private set; }
public const int __ID__ = -468241685;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
BuffParam?.Resolve(_tables);
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
BuffParam?.TranslateText(translator);
Title = translator(Title_l10n_key, Title);
Desc = translator(Desc_l10n_key, Desc);
RemarkDesc = translator(RemarkDesc_l10n_key, RemarkDesc);
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Icon:" + Icon + ","
+ "GroupId:" + GroupId + ","
+ "SortID:" + SortID + ","
+ "BuffParam:" + BuffParam + ","
+ "IsMapBuff:" + IsMapBuff + ","
+ "CountDown:" + CountDown + ","
+ "Audio:" + Audio + ","
+ "RemarkNode:" + RemarkNode + ","
+ "RemarkIcon:" + Bright.Common.StringUtil.CollectionToString(RemarkIcon) + ","
+ "Title:" + Title + ","
+ "Desc:" + Desc + ","
+ "RemarkDesc:" + RemarkDesc + ","
+ "SceneFx:" + SceneFx + ","
+ "IsDarkness:" + IsDarkness + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}