NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/StringCfg/DataString.cs

85 lines
2.3 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.StringCfg
{
public sealed partial class DataString : Bright.Config.BeanBase
{
public DataString(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Key"].IsString) { throw new SerializationException(); } Key = _json["Key"]; }
{ if(!_json["Value"].IsString) { throw new SerializationException(); } Value = _json["Value"]; }
{ if(!_json["Value_En"].IsString) { throw new SerializationException(); } ValueEn = _json["Value_En"]; }
PostInit();
}
public DataString(int ID, string Key, string Value, string Value_En )
{
this.ID = ID;
this.Key = Key;
this.Value = Value;
this.ValueEn = Value_En;
PostInit();
}
public static DataString DeserializeDataString(JSONNode _json)
{
return new StringCfg.DataString(_json);
}
/// <summary>
/// 配置用ID
/// </summary>
public int ID { get; private set; }
/// <summary>
/// 索引
/// </summary>
public string Key { get; private set; }
/// <summary>
/// 内容
/// </summary>
public string Value { get; private set; }
/// <summary>
/// 内容(英)
/// </summary>
public string ValueEn { get; private set; }
public const int __ID__ = -1090136362;
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 "{ "
+ "ID:" + ID + ","
+ "Key:" + Key + ","
+ "Value:" + Value + ","
+ "ValueEn:" + ValueEn + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}