NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/AudioCfg/DataAudio.cs

99 lines
2.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 Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg.AudioCfg
{
public sealed partial class DataAudio : Bright.Config.BeanBase
{
public DataAudio(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Key"].IsString) { throw new SerializationException(); } Key = _json["Key"]; }
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (AudioCfg.AudioType)_json["Type"].AsInt; }
{ if(!_json["CueName"].IsString) { throw new SerializationException(); } CueName = _json["CueName"]; }
{ if(!_json["CueID"].IsNumber) { throw new SerializationException(); } CueID = _json["CueID"]; }
{ if(!_json["Path"].IsString) { throw new SerializationException(); } Path = _json["Path"]; }
PostInit();
}
public DataAudio(int ID, string Key, AudioCfg.AudioType Type, string CueName, int CueID, string Path )
{
this.ID = ID;
this.Key = Key;
this.Type = Type;
this.CueName = CueName;
this.CueID = CueID;
this.Path = Path;
PostInit();
}
public static DataAudio DeserializeDataAudio(JSONNode _json)
{
return new AudioCfg.DataAudio(_json);
}
/// <summary>
/// 音频ID
/// </summary>
public int ID { get; private set; }
/// <summary>
/// 音频Key
/// </summary>
public string Key { get; private set; }
/// <summary>
/// 音频Key
/// </summary>
public AudioCfg.AudioType Type { get; private set; }
/// <summary>
/// 内部播放名
/// </summary>
public string CueName { get; private set; }
/// <summary>
/// 内部播放ID
/// </summary>
public int CueID { get; private set; }
/// <summary>
/// 音频路径
/// </summary>
public string Path { get; private set; }
public const int __ID__ = 1480358156;
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 + ","
+ "Type:" + Type + ","
+ "CueName:" + CueName + ","
+ "CueID:" + CueID + ","
+ "Path:" + Path + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}