//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Luban;
namespace SepCore.Definition
{
public sealed partial class SoundConfig : Luban.BeanBase
{
public SoundConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
AssetName = _buf.ReadString();
Priority = _buf.ReadInt();
Loop = _buf.ReadBool();
Volume = _buf.ReadFloat();
SpatialBlend = _buf.ReadFloat();
MaxDistance = _buf.ReadFloat();
}
public static SoundConfig DeserializeSoundConfig(ByteBuf _buf)
{
return new SoundConfig(_buf);
}
///
/// 声音编号
///
public readonly int Id;
///
/// 名字
///
public readonly string Name;
///
/// 资源名称
///
public readonly string AssetName;
///
/// 优先级(默认0,128最高,-128最低)
///
public readonly int Priority;
///
/// 是否循环
///
public readonly bool Loop;
///
/// 音量(0~1)
///
public readonly float Volume;
///
/// 声音空间混合量(0为2D,1为3D)
///
public readonly float SpatialBlend;
///
/// 声音最大距离
///
public readonly float MaxDistance;
public const int __ID__ = -1164338927;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "assetName:" + AssetName + ","
+ "priority:" + Priority + ","
+ "loop:" + Loop + ","
+ "volume:" + Volume + ","
+ "spatialBlend:" + SpatialBlend + ","
+ "maxDistance:" + MaxDistance + ","
+ "}";
}
}
}