65 lines
1.6 KiB
C#
65 lines
1.6 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 SimpleJSON;
|
||
|
|
||
|
|
||
|
namespace cfg.data
|
||
|
{
|
||
|
public sealed partial class Sound : Luban.BeanBase
|
||
|
{
|
||
|
public Sound(JSONNode _buf)
|
||
|
{
|
||
|
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||
|
{ if(!_buf["type"].IsNumber) { throw new SerializationException(); } Type = _buf["type"]; }
|
||
|
{ if(!_buf["source"].IsString) { throw new SerializationException(); } Source = _buf["source"]; }
|
||
|
{ if(!_buf["volume"].IsNumber) { throw new SerializationException(); } Volume = _buf["volume"]; }
|
||
|
}
|
||
|
|
||
|
public static Sound DeserializeSound(JSONNode _buf)
|
||
|
{
|
||
|
return new data.Sound(_buf);
|
||
|
}
|
||
|
|
||
|
public readonly int Id;
|
||
|
/// <summary>
|
||
|
/// 类型
|
||
|
/// </summary>
|
||
|
public readonly int Type;
|
||
|
/// <summary>
|
||
|
/// 资源名
|
||
|
/// </summary>
|
||
|
public readonly string Source;
|
||
|
/// <summary>
|
||
|
/// 音量
|
||
|
/// </summary>
|
||
|
public readonly float Volume;
|
||
|
|
||
|
public const int __ID__ = 187157931;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "id:" + Id + ","
|
||
|
+ "type:" + Type + ","
|
||
|
+ "source:" + Source + ","
|
||
|
+ "volume:" + Volume + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|