73 lines
1.9 KiB
C#
73 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 Bright.Serialization;
|
|
using System.Collections.Generic;
|
|
using SimpleJSON;
|
|
|
|
|
|
|
|
namespace cfg
|
|
{
|
|
|
|
public sealed partial class MMTStringData : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public MMTStringData(JSONNode _json)
|
|
{
|
|
{ if(!_json["OldString"].IsString) { throw new SerializationException(); } OldString = _json["OldString"]; }
|
|
{ if(!_json["NewString"].IsString) { throw new SerializationException(); } NewString = _json["NewString"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public MMTStringData(string OldString, string NewString )
|
|
{
|
|
this.OldString = OldString;
|
|
this.NewString = NewString;
|
|
PostInit();
|
|
}
|
|
|
|
public static MMTStringData DeserializeMMTStringData(JSONNode _json)
|
|
{
|
|
return new MMTStringData(_json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 旧名称
|
|
/// </summary>
|
|
public string OldString { get; private set; }
|
|
/// <summary>
|
|
/// 新名称
|
|
/// </summary>
|
|
public string NewString { get; private set; }
|
|
|
|
public const int __ID__ = 32082223;
|
|
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 "{ "
|
|
+ "OldString:" + OldString + ","
|
|
+ "NewString:" + NewString + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|