mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 19:03:29 +08:00
- 实现了SettingsModel用于管理应用程序设置部分 - 创建了SettingsSystem用于应用各种设置配置 - 添加了AudioSettings和GraphicsSettings基础设置类 - 定义了ISettingsModel、ISettingsSystem等核心接口 - 实现了GodotAudioApplier用于应用音频设置到Godot音频系统 - 创建了GodotGraphicsSettings用于管理游戏图形显示设置 - 添加了GodotFileStorage特化文件存储实现 - 实现了Godot路径扩展方法IsUserPath、IsResPath、IsGodotPath - 添加了AudioBusMap音频总线映射配置类
22 lines
600 B
C#
22 lines
600 B
C#
namespace GFramework.Game.Abstractions.setting;
|
|
|
|
/// <summary>
|
|
/// 图形设置类,用于管理游戏的图形相关配置
|
|
/// </summary>
|
|
public class GraphicsSettings : ISettingsSection
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置是否启用全屏模式
|
|
/// </summary>
|
|
public bool Fullscreen { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 获取或设置屏幕分辨率宽度
|
|
/// </summary>
|
|
public int ResolutionWidth { get; set; } = 1920;
|
|
|
|
/// <summary>
|
|
/// 获取或设置屏幕分辨率高度
|
|
/// </summary>
|
|
public int ResolutionHeight { get; set; } = 1080;
|
|
} |