75 lines
1.9 KiB
C#
75 lines
1.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 Luban;
|
||
|
|
using AlicizaX.Config;
|
||
|
|
|
||
|
|
namespace Game.Config
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 用于保存中文原content以及对应的国际化Key
|
||
|
|
/// </summary>
|
||
|
|
public sealed partial class TranslateCKBean : Luban.BeanBase
|
||
|
|
{
|
||
|
|
public TranslateCKBean(string Content, string Key)
|
||
|
|
{
|
||
|
|
this.Content = Content;
|
||
|
|
this.Key = Key;
|
||
|
|
PostInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
public TranslateCKBean(ByteBuf _buf)
|
||
|
|
{
|
||
|
|
Content = _buf.ReadString();
|
||
|
|
Key = _buf.ReadString();
|
||
|
|
// Localization Key Begin
|
||
|
|
// Localization Key End
|
||
|
|
PostInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
public static TranslateCKBean DeserializeTranslateCKBean(ByteBuf _buf)
|
||
|
|
{
|
||
|
|
return new TranslateCKBean(_buf);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 内容
|
||
|
|
/// </summary>
|
||
|
|
public string Content { private set; get; }
|
||
|
|
/// <summary>
|
||
|
|
/// 对应Key
|
||
|
|
/// </summary>
|
||
|
|
public string Key { private set; get; }
|
||
|
|
public const int __ID__ = 1171657446;
|
||
|
|
public override int GetTypeId() => __ID__;
|
||
|
|
|
||
|
|
public void ResolveRef(TablesComponent tables)
|
||
|
|
{
|
||
|
|
|
||
|
|
|
||
|
|
PostResolveRef();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public override string ToString()
|
||
|
|
{
|
||
|
|
return "{ "
|
||
|
|
+ "content:" + Content + ","
|
||
|
|
+ "key:" + Key + ","
|
||
|
|
+ "}";
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void PostInit();
|
||
|
|
partial void PostResolveRef();
|
||
|
|
}
|
||
|
|
}
|