68 lines
1.8 KiB
C#
68 lines
1.8 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 Luban;
|
||
|
using SimpleJSON;
|
||
|
|
||
|
|
||
|
namespace cfg.data
|
||
|
{
|
||
|
public sealed partial class Language : Luban.BeanBase
|
||
|
{
|
||
|
public Language(JSONNode _buf)
|
||
|
{
|
||
|
{ if(!_buf["key1"].IsNumber) { throw new SerializationException(); } Key1 = _buf["key1"]; }
|
||
|
{ if(!_buf["key2"].IsString) { throw new SerializationException(); } Key2 = _buf["key2"]; }
|
||
|
{ if(!_buf["cn"].IsString) { throw new SerializationException(); } Cn = _buf["cn"]; }
|
||
|
{ if(!_buf["en"].IsString) { throw new SerializationException(); } En = _buf["en"]; }
|
||
|
{ if(!_buf["ru"].IsString) { throw new SerializationException(); } Ru = _buf["ru"]; }
|
||
|
}
|
||
|
|
||
|
public static Language DeserializeLanguage(JSONNode _buf)
|
||
|
{
|
||
|
return new data.Language(_buf);
|
||
|
}
|
||
|
|
||
|
public readonly int Key1;
|
||
|
public readonly string Key2;
|
||
|
/// <summary>
|
||
|
/// 汉语
|
||
|
/// </summary>
|
||
|
public readonly string Cn;
|
||
|
/// <summary>
|
||
|
/// 英语
|
||
|
/// </summary>
|
||
|
public readonly string En;
|
||
|
/// <summary>
|
||
|
/// 俄语
|
||
|
/// </summary>
|
||
|
public readonly string Ru;
|
||
|
|
||
|
public const int __ID__ = 1693186364;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "key1:" + Key1 + ","
|
||
|
+ "key2:" + Key2 + ","
|
||
|
+ "cn:" + Cn + ","
|
||
|
+ "en:" + En + ","
|
||
|
+ "ru:" + Ru + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|