Files
Seek-Battle-Evacuate/Assets/GameMain/Scripts/Base/Gen/SoundConfig.cs
T
huangjun 92bf3e9097 - 引入 UnityGameFramework
- 使用 Luban 替代原来的 UGF 的数据表
2026-08-30 18:08:55 +08:00

91 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <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;
namespace SepCore.Definition
{
public sealed partial class SoundConfig : Luban.BeanBase
{
public SoundConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
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);
}
/// <summary>
/// 声音编号
/// </summary>
public readonly int Id;
/// <summary>
/// 资源名称
/// </summary>
public readonly string AssetName;
/// <summary>
/// 优先级(默认0,128最高,-128最低)
/// </summary>
public readonly int Priority;
/// <summary>
/// 是否循环
/// </summary>
public readonly bool Loop;
/// <summary>
/// 音量(0~1)
/// </summary>
public readonly float Volume;
/// <summary>
/// 声音空间混合量(0为2D,1为3D)
/// </summary>
public readonly float SpatialBlend;
/// <summary>
/// 声音最大距离
/// </summary>
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 + ","
+ "assetName:" + AssetName + ","
+ "priority:" + Priority + ","
+ "loop:" + Loop + ","
+ "volume:" + Volume + ","
+ "spatialBlend:" + SpatialBlend + ","
+ "maxDistance:" + MaxDistance + ","
+ "}";
}
}
}