- 引入 UnityGameFramework

- 使用 Luban 替代原来的 UGF 的数据表
This commit is contained in:
huangjun
2026-08-30 18:08:55 +08:00
parent 42ad134759
commit 92bf3e9097
1925 changed files with 362268 additions and 4859 deletions
@@ -0,0 +1,90 @@
//------------------------------------------------------------------------------
// <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 + ","
+ "}";
}
}
}