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

78 lines
2.0 KiB
C#
Raw Normal View History

2023-08-22 19:08:45 +08:00
//------------------------------------------------------------------------------
// <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"]; }
PostInit();
}
public DataString(int ID, string Key, string Value )
{
this.ID = ID;
this.Key = Key;
this.Value = Value;
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; }
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 + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}