Files
MinFt/Client/Assets/Scripts/Tables/FishingEventCycleItem.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
5.3 KiB
C#
Raw 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 FishingEventCycleItem : Bright.Config.BeanBase
{
public JSONNode json;
public FishingEventCycleItem(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = _json["Type"]; }
{ if(!_json["SubType"].IsNumber) { throw new SerializationException(); } SubType = _json["SubType"]; }
{ if(!_json["EventName"]["key"].IsString) { throw new SerializationException(); } EventName_l10n_key = _json["EventName"]["key"]; if(!_json["EventName"]["text"].IsString) { throw new SerializationException(); } EventName = _json["EventName"]["text"]; }
{ if(!_json["RedirectID"].IsNumber) { throw new SerializationException(); } RedirectID = _json["RedirectID"]; }
{ if(!_json["ItemId"].IsNumber) { throw new SerializationException(); } ItemId = _json["ItemId"]; }
{ if(!_json["ExchangeRate"].IsNumber) { throw new SerializationException(); } ExchangeRate = _json["ExchangeRate"]; }
{ if(!_json["WelcomeGift"].IsNumber) { throw new SerializationException(); } WelcomeGift = _json["WelcomeGift"]; }
{ if(!_json["RedDot"].IsNumber) { throw new SerializationException(); } RedDot = _json["RedDot"]; }
{ var __json0 = _json["EventEndSettlement"]; if(!__json0.IsArray) { throw new SerializationException(); } EventEndSettlement = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } EventEndSettlement.Add(__v0); } }
{ if(!_json["InfoPopUp"].IsNumber) { throw new SerializationException(); } InfoPopUp = _json["InfoPopUp"]; }
json = _json;
PostInit();
}
public FishingEventCycleItem(int ID, int Type, int SubType, string EventName, int RedirectID, int ItemId, int ExchangeRate, int WelcomeGift, int RedDot, System.Collections.Generic.List<int> EventEndSettlement, int InfoPopUp )
{
this.ID = ID;
this.Type = Type;
this.SubType = SubType;
this.EventName = EventName;
this.RedirectID = RedirectID;
this.ItemId = ItemId;
this.ExchangeRate = ExchangeRate;
this.WelcomeGift = WelcomeGift;
this.RedDot = RedDot;
this.EventEndSettlement = EventEndSettlement;
this.InfoPopUp = InfoPopUp;
PostInit();
}
public static FishingEventCycleItem DeserializeFishingEventCycleItem(JSONNode _json)
{
return new FishingEventCycleItem(_json);
}
/// <summary>
/// #备注行
/// </summary>
public int ID { get; private set; }
/// <summary>
/// 见附录
/// </summary>
public int Type { get; private set; }
/// <summary>
/// 见附录
/// </summary>
public int SubType { get; private set; }
/// <summary>
/// 活动名
/// </summary>
public string EventName { get; private set; }
public string EventName_l10n_key { get; }
/// <summary>
/// Event表里的对应值
/// </summary>
public int RedirectID { get; private set; }
public int ItemId { get; private set; }
/// <summary>
/// 1、几个通用代币能换一个对应活动代币取整时四舍五入<br/>2、缺省配置代表X个代币可以换1000钞票
/// </summary>
public int ExchangeRate { get; private set; }
public int WelcomeGift { get; private set; }
/// <summary>
/// 剩余道具≥设定值时,有红点
/// </summary>
public int RedDot { get; private set; }
/// <summary>
/// 转换成的itemID
/// </summary>
public System.Collections.Generic.List<int> EventEndSettlement { get; private set; }
/// <summary>
/// 1为每次event id不同时弹玩法说明弹窗
/// </summary>
public int InfoPopUp { get; private set; }
public const int __ID__ = 2077189289;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
EventName = translator(EventName_l10n_key, EventName);
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Type:" + Type + ","
+ "SubType:" + SubType + ","
+ "EventName:" + EventName + ","
+ "RedirectID:" + RedirectID + ","
+ "ItemId:" + ItemId + ","
+ "ExchangeRate:" + ExchangeRate + ","
+ "WelcomeGift:" + WelcomeGift + ","
+ "RedDot:" + RedDot + ","
+ "EventEndSettlement:" + Bright.Common.StringUtil.CollectionToString(EventEndSettlement) + ","
+ "InfoPopUp:" + InfoPopUp + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}