备份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,131 @@
//------------------------------------------------------------------------------
// <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();
}
}