mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 将 IRegistry 接口从 GFramework.Game.Abstractions.registry 移至 GFramework.Core.Abstractions.registries - 移除 KeyValueRegistryBase 中对旧命名空间的引用 - 将 IsExternalInit 类从 System.Runtime.CompilerServices 移至 GFramework.Game.Abstractions.internals - 更新 IGameSceneRegistry 对新注册表命名空间的引用 - 将音频和图形设置类移至 GFramework.Game.Abstractions.setting.data 子命名空间 - 将资产注册表接口更新为使用新的核心注册表命名空间 - 调整 Godot 模块中的音频总线映射命名空间至 data 子目录 - 更新 Godot 音频和图形设置类以引用正确的设置数据命名空间
36 lines
845 B
C#
36 lines
845 B
C#
namespace GFramework.Godot.setting.data;
|
|
|
|
/// <summary>
|
|
/// 音频总线映射设置
|
|
/// 定义了游戏中不同音频类型的总线名称配置
|
|
/// </summary>
|
|
public class AudioBusMap
|
|
{
|
|
/// <summary>
|
|
/// 主音频总线名称
|
|
/// 默认值为"Master"
|
|
/// </summary>
|
|
public string Master { get; set; } = "Master";
|
|
|
|
/// <summary>
|
|
/// 背景音乐总线名称
|
|
/// 默认值为"BGM"
|
|
/// </summary>
|
|
public string Bgm { get; set; } = "BGM";
|
|
|
|
/// <summary>
|
|
/// 音效总线名称
|
|
/// 默认值为"SFX"
|
|
/// </summary>
|
|
public string Sfx { get; set; } = "SFX";
|
|
|
|
/// <summary>
|
|
/// 重置音频总线映射设置为默认值
|
|
/// </summary>
|
|
public void Reset()
|
|
{
|
|
Master = "Master";
|
|
Bgm = "BGM";
|
|
Sfx = "SFX";
|
|
}
|
|
} |