先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
114 lines
3.9 KiB
C#
114 lines
3.9 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
|
|
{
|
|
|
|
public sealed partial class Item : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public Item(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["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
|
|
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = _json["Type"]; }
|
|
{ if(!_json["SubType"].IsNumber) { throw new SerializationException(); } SubType = _json["SubType"]; }
|
|
{ if(!_json["RedirectID"].IsNumber) { throw new SerializationException(); } RedirectID = _json["RedirectID"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ 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["Fx"].IsString) { throw new SerializationException(); } Fx = _json["Fx"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public Item(int ID, string Name, int Quality, int Type, int SubType, int RedirectID, string Icon, string Desc, string Fx )
|
|
{
|
|
this.ID = ID;
|
|
this.Name = Name;
|
|
this.Quality = Quality;
|
|
this.Type = Type;
|
|
this.SubType = SubType;
|
|
this.RedirectID = RedirectID;
|
|
this.Icon = Icon;
|
|
this.Desc = Desc;
|
|
this.Fx = Fx;
|
|
PostInit();
|
|
}
|
|
|
|
public static Item DeserializeItem(JSONNode _json)
|
|
{
|
|
return new Item(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
/// <summary>
|
|
/// 多语言key + 中文
|
|
/// </summary>
|
|
public string Name { get; private set; }
|
|
public string Name_l10n_key { get; }
|
|
/// <summary>
|
|
/// 见Remark附录
|
|
/// </summary>
|
|
public int Quality { get; private set; }
|
|
/// <summary>
|
|
/// 见#Remark表
|
|
/// </summary>
|
|
public int Type { get; private set; }
|
|
/// <summary>
|
|
/// 见#Remark表
|
|
/// </summary>
|
|
public int SubType { get; private set; }
|
|
public int RedirectID { get; private set; }
|
|
/// <summary>
|
|
/// 指定目录下
|
|
/// </summary>
|
|
public string Icon { get; private set; }
|
|
public string Desc { get; private set; }
|
|
public string Desc_l10n_key { get; }
|
|
public string Fx { get; private set; }
|
|
|
|
public const int __ID__ = 2289459;
|
|
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);
|
|
Desc = translator(Desc_l10n_key, Desc);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Name:" + Name + ","
|
|
+ "Quality:" + Quality + ","
|
|
+ "Type:" + Type + ","
|
|
+ "SubType:" + SubType + ","
|
|
+ "RedirectID:" + RedirectID + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "Desc:" + Desc + ","
|
|
+ "Fx:" + Fx + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|