23 lines
697 B
C#
23 lines
697 B
C#
// Assets/Scripts/Core/ISettingsService.cs
|
|
// 全局设置服务接口,通过 ServiceLocator 注册与查询。
|
|
// SettingsManager 实现此接口;调用方通过 ISettingsService 解耦。
|
|
|
|
using UnityEngine;
|
|
|
|
namespace BaseGames.Core
|
|
{
|
|
public interface ISettingsService
|
|
{
|
|
GlobalSettingsData Current { get; }
|
|
void SetMasterVolume(float v);
|
|
void SetBGMVolume(float v);
|
|
void SetSFXVolume(float v);
|
|
void SetAmbientVolume(float v);
|
|
void SetResolution(int w, int h, FullScreenMode mode);
|
|
void SetVSync(bool enabled);
|
|
void SetTargetFrameRate(int fps);
|
|
void SetLanguage(string localeCode);
|
|
void Save();
|
|
}
|
|
}
|