Files
MinFt/Client/Assets/Scripts/Tables/EventWashingStep.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.0 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 EventWashingStep : Bright.Config.BeanBase
{
public JSONNode json;
public EventWashingStep(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Name"]["key"].IsString) { throw new SerializationException(); } Name_l10n_key = _json["Name"]["key"]; if(!_json["Name"]["text"].IsString) { throw new SerializationException(); } Name = _json["Name"]["text"]; }
{ if(!_json["GameType"].IsNumber) { throw new SerializationException(); } GameType = (EventWashingOperation)_json["GameType"].AsInt; }
{ if(!_json["GameID"].IsNumber) { throw new SerializationException(); } GameID = _json["GameID"]; }
{ if(!_json["ToolType"].IsNumber) { throw new SerializationException(); } ToolType = (EventWashingTool)_json["ToolType"].AsInt; }
{ if(!_json["EnergyConsume"].IsNumber) { throw new SerializationException(); } EnergyConsume = _json["EnergyConsume"]; }
{ if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; }
{ if(!_json["ToolID"].IsNumber) { throw new SerializationException(); } ToolID = _json["ToolID"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["GiftIcon"].IsString) { throw new SerializationException(); } GiftIcon = _json["GiftIcon"]; }
{ if(!_json["ShowID"].IsNumber) { throw new SerializationException(); } ShowID = _json["ShowID"]; }
json = _json;
PostInit();
}
public EventWashingStep(int ID, string Name, EventWashingOperation GameType, int GameID, EventWashingTool ToolType, int EnergyConsume, int DropID, int ToolID, string Icon, string GiftIcon, int ShowID )
{
this.ID = ID;
this.Name = Name;
this.GameType = GameType;
this.GameID = GameID;
this.ToolType = ToolType;
this.EnergyConsume = EnergyConsume;
this.DropID = DropID;
this.ToolID = ToolID;
this.Icon = Icon;
this.GiftIcon = GiftIcon;
this.ShowID = ShowID;
PostInit();
}
public static EventWashingStep DeserializeEventWashingStep(JSONNode _json)
{
return new EventWashingStep(_json);
}
public int ID { get; private set; }
/// <summary>
/// 多语言key + 中文
/// </summary>
public string Name { get; private set; }
public string Name_l10n_key { get; }
/// <summary>
/// Foaming喷泡沫<br/>Washing冲泡沫<br/>Installing安装<br/>Removing拆卸<br/>Cleaning吸尘<br/>Painting喷涂Barnacle清藤壶<br/>Review预览
/// </summary>
public EventWashingOperation GameType { get; private set; }
/// <summary>
/// 对应脚本中的编号
/// </summary>
public int GameID { get; private set; }
/// <summary>
/// FoamSprayer喷枪<br/>WaterSprayer水枪<br/>Shovel铲子 Spanner:扳手<br/>Cleaner吸尘器<br/>Brush笔刷
/// </summary>
public EventWashingTool ToolType { get; private set; }
/// <summary>
/// 当前步骤总消耗
/// </summary>
public int EnergyConsume { get; private set; }
/// <summary>
/// 对应Drop表主键
/// </summary>
public int DropID { get; private set; }
/// <summary>
/// 对应脚本中的编号shovel1:玻璃吸盘shovel2铲子shovel3:抛光机
/// </summary>
public int ToolID { get; private set; }
public string Icon { get; private set; }
/// <summary>
/// 有则显示礼包图标
/// </summary>
public string GiftIcon { get; private set; }
/// <summary>
/// 0:welldone1:good
/// </summary>
public int ShowID { get; private set; }
public const int __ID__ = -1199893643;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
Name = translator(Name_l10n_key, Name);
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Name:" + Name + ","
+ "GameType:" + GameType + ","
+ "GameID:" + GameID + ","
+ "ToolType:" + ToolType + ","
+ "EnergyConsume:" + EnergyConsume + ","
+ "DropID:" + DropID + ","
+ "ToolID:" + ToolID + ","
+ "Icon:" + Icon + ","
+ "GiftIcon:" + GiftIcon + ","
+ "ShowID:" + ShowID + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}