Files
back_cantanBuilding/Assets/Scripts/Tables/Text.cs
2026-05-26 16:15:54 +08:00

192 lines
6.7 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 Text : Bright.Config.BeanBase
{
public JSONNode json;
public Text(JSONNode _json)
{
{ if(!_json["key"].IsString) { throw new SerializationException(); } Key = _json["key"]; }
{ if(!_json["origin_text"].IsString) { throw new SerializationException(); } OriginText = _json["origin_text"]; }
{ if(!_json["text_zh_Hans"].IsString) { throw new SerializationException(); } TextZhHans = _json["text_zh_Hans"]; }
{ if(!_json["text_zh_Hant"].IsString) { throw new SerializationException(); } TextZhHant = _json["text_zh_Hant"]; }
{ if(!_json["text_en"].IsString) { throw new SerializationException(); } TextEn = _json["text_en"]; }
{ if(!_json["text_de"].IsString) { throw new SerializationException(); } TextDe = _json["text_de"]; }
{ if(!_json["text_fr"].IsString) { throw new SerializationException(); } TextFr = _json["text_fr"]; }
{ if(!_json["text_es"].IsString) { throw new SerializationException(); } TextEs = _json["text_es"]; }
{ if(!_json["text_pt"].IsString) { throw new SerializationException(); } TextPt = _json["text_pt"]; }
{ if(!_json["text_it"].IsString) { throw new SerializationException(); } TextIt = _json["text_it"]; }
{ if(!_json["text_tr"].IsString) { throw new SerializationException(); } TextTr = _json["text_tr"]; }
{ if(!_json["text_ar"].IsString) { throw new SerializationException(); } TextAr = _json["text_ar"]; }
{ if(!_json["text_ja"].IsString) { throw new SerializationException(); } TextJa = _json["text_ja"]; }
{ if(!_json["text_ko"].IsString) { throw new SerializationException(); } TextKo = _json["text_ko"]; }
{ if(!_json["text_pl"].IsString) { throw new SerializationException(); } TextPl = _json["text_pl"]; }
{ if(!_json["text_nl"].IsString) { throw new SerializationException(); } TextNl = _json["text_nl"]; }
{ if(!_json["text_ms"].IsString) { throw new SerializationException(); } TextMs = _json["text_ms"]; }
{ if(!_json["text_th"].IsString) { throw new SerializationException(); } TextTh = _json["text_th"]; }
{ if(!_json["text_id"].IsString) { throw new SerializationException(); } TextId = _json["text_id"]; }
json = _json;
PostInit();
}
public Text(string key, string origin_text, string text_zh_Hans, string text_zh_Hant, string text_en, string text_de, string text_fr, string text_es, string text_pt, string text_it, string text_tr, string text_ar, string text_ja, string text_ko, string text_pl, string text_nl, string text_ms, string text_th, string text_id )
{
this.Key = key;
this.OriginText = origin_text;
this.TextZhHans = text_zh_Hans;
this.TextZhHant = text_zh_Hant;
this.TextEn = text_en;
this.TextDe = text_de;
this.TextFr = text_fr;
this.TextEs = text_es;
this.TextPt = text_pt;
this.TextIt = text_it;
this.TextTr = text_tr;
this.TextAr = text_ar;
this.TextJa = text_ja;
this.TextKo = text_ko;
this.TextPl = text_pl;
this.TextNl = text_nl;
this.TextMs = text_ms;
this.TextTh = text_th;
this.TextId = text_id;
PostInit();
}
public static Text DeserializeText(JSONNode _json)
{
return new Text(_json);
}
/// <summary>
/// 主键
/// </summary>
public string Key { get; private set; }
/// <summary>
/// 开发语言
/// </summary>
public string OriginText { get; private set; }
/// <summary>
/// Chinese (Simplified)
/// </summary>
public string TextZhHans { get; private set; }
/// <summary>
/// Chinese (Traditional)
/// </summary>
public string TextZhHant { get; private set; }
/// <summary>
/// English
/// </summary>
public string TextEn { get; private set; }
/// <summary>
/// German
/// </summary>
public string TextDe { get; private set; }
/// <summary>
/// French
/// </summary>
public string TextFr { get; private set; }
/// <summary>
/// Spanish
/// </summary>
public string TextEs { get; private set; }
/// <summary>
/// Portuguese
/// </summary>
public string TextPt { get; private set; }
/// <summary>
/// Italian
/// </summary>
public string TextIt { get; private set; }
/// <summary>
/// Turkish
/// </summary>
public string TextTr { get; private set; }
/// <summary>
/// Arabic
/// </summary>
public string TextAr { get; private set; }
/// <summary>
/// Japanese
/// </summary>
public string TextJa { get; private set; }
/// <summary>
/// Korean
/// </summary>
public string TextKo { get; private set; }
/// <summary>
/// Polish
/// </summary>
public string TextPl { get; private set; }
/// <summary>
/// Dutch
/// </summary>
public string TextNl { get; private set; }
/// <summary>
/// Malay
/// </summary>
public string TextMs { get; private set; }
/// <summary>
/// Thai
/// </summary>
public string TextTh { get; private set; }
/// <summary>
/// Indonesian
/// </summary>
public string TextId { get; private set; }
public const int __ID__ = 2603341;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
}
public override string ToString()
{
return "{ "
+ "Key:" + Key + ","
+ "OriginText:" + OriginText + ","
+ "TextZhHans:" + TextZhHans + ","
+ "TextZhHant:" + TextZhHant + ","
+ "TextEn:" + TextEn + ","
+ "TextDe:" + TextDe + ","
+ "TextFr:" + TextFr + ","
+ "TextEs:" + TextEs + ","
+ "TextPt:" + TextPt + ","
+ "TextIt:" + TextIt + ","
+ "TextTr:" + TextTr + ","
+ "TextAr:" + TextAr + ","
+ "TextJa:" + TextJa + ","
+ "TextKo:" + TextKo + ","
+ "TextPl:" + TextPl + ","
+ "TextNl:" + TextNl + ","
+ "TextMs:" + TextMs + ","
+ "TextTh:" + TextTh + ","
+ "TextId:" + TextId + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}